Basho\Tests\ObjectOperationsTest::testStoreExisting PHP Method

testStoreExisting() public method

public testStoreExisting ( )
    public function testStoreExisting()
    {
        $object = static::$object;
        $object->setData('some_new_data');
        $command = (new Command\Builder\StoreObject(static::$riak))->withObject($object)->buildLocation(static::$key, 'users')->build();
        $response = $command->execute();
        // 204 - No Content
        $this->assertEquals('204', $response->getCode());
    }