Basho\Tests\ObjectOperationsTest::testStoreNewWithKey PHP Method

testStoreNewWithKey() public method

public testStoreNewWithKey ( )
    public function testStoreNewWithKey()
    {
        $command = (new Command\Builder\StoreObject(static::$riak))->buildObject('some_data')->buildLocation(static::$key, 'users')->build();
        $response = $command->execute();
        // expects 204 - No Content
        // this is wonky, its not 201 because the key may have been generated on another node
        $this->assertEquals('204', $response->getCode());
        $this->assertEmpty($response->getLocation());
    }