Basho\Tests\Riak\Command\Builder\StoreRowTest::testStoreSingle PHP Method

testStoreSingle() public method

Test command builder construct
public testStoreSingle ( )
    public function testStoreSingle()
    {
        $row = static::generateRow();
        // initialize builder
        $builder = (new Command\Builder\TimeSeries\StoreRows(static::$riak))->inTable(static::$table)->withRow($row);
        // build a command
        $command = $builder->build();
        $this->assertInstanceOf('Basho\\Riak\\Command\\TimeSeries\\Store', $command);
        $this->assertEquals(static::$table, $command->getTable());
        $this->assertEquals([$row], $command->getData());
    }