Skip to content

Commit

Permalink
Fixing tests for php7.2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolim4 committed Oct 11, 2017
1 parent e70ac47 commit 3156a58
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tests/unit/Riak/Command/Builder/FetchObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function testFetch()
$builder->buildLocation('some_key', 'some_bucket');
$command = $builder->build();

$this->assertInstanceOf('Basho\Riak\Command\Object\Fetch', $command);
$this->assertInstanceOf('Basho\Riak\Command\KVObject\Fetch', $command);
$this->assertInstanceOf('Basho\Riak\Bucket', $command->getBucket());
$this->assertInstanceOf('Basho\Riak\Location', $command->getLocation());
$this->assertEquals('some_bucket', $command->getBucket()->getName());
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Riak/Command/Builder/ListObjectsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function testList()
->acknowledgeRisk(true);
$command = $builder->build();

$this->assertInstanceOf('Basho\Riak\Command\Object\Keys\Fetch', $command);
$this->assertInstanceOf('Basho\Riak\Command\KVObject\Keys\Fetch', $command);
$this->assertInstanceOf('Basho\Riak\Bucket', $command->getBucket());
$this->assertEquals('some_bucket', $command->getBucket()->getName());
$this->assertEquals('default', $command->getBucket()->getType());
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/Riak/Command/Builder/StoreObjectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function testStoreWithKey()
$builder->buildLocation('some_key', 'some_bucket');
$command = $builder->build();

$this->assertInstanceOf('Basho\Riak\Command\Object\Store', $command);
$this->assertInstanceOf('Basho\Riak\Command\KVObject\Store', $command);
$this->assertInstanceOf('Basho\Riak\DataObject', $command->getObject());
$this->assertInstanceOf('Basho\Riak\Bucket', $command->getBucket());
$this->assertInstanceOf('Basho\Riak\Location', $command->getLocation());
Expand All @@ -44,7 +44,7 @@ public function testStoreWithOutKey()
$builder->buildBucket('some_bucket');
$command = $builder->build();

$this->assertInstanceOf('Basho\Riak\Command\Object\Store', $command);
$this->assertInstanceOf('Basho\Riak\Command\KVObject\Store', $command);
$this->assertEquals('some_bucket', $command->getBucket()->getName());
}

Expand Down Expand Up @@ -84,7 +84,7 @@ public function testStoreObjectWithIndexGeneratesHeaders()
$builder->buildBucket('some_bucket');
$command = $builder->build();

$this->assertInstanceOf('Basho\Riak\Command\Object\Store', $command);
$this->assertInstanceOf('Basho\Riak\Command\KVObject\Store', $command);

$this->assertArrayHasKey('My-Header', $command->getObject()->getMetaData());
$this->assertEquals($command->getObject()->getMetaData()['My-Header'], 'cats');
Expand Down

0 comments on commit 3156a58

Please sign in to comment.