Pheasant\Tests\TableTest::testUpdatingATable PHP Method

testUpdatingATable() public method

public testUpdatingATable ( )
    public function testUpdatingATable()
    {
        $this->table->insert(array('firstname' => 'Llama', 'lastname' => 'Herder'));
        $this->assertRowCount(1, 'select * from user');
        $this->table->update(array('firstname' => 'Bob'), new Pheasant\Query\Criteria('userid=?', 1));
        $this->assertEquals($this->connection()->execute("select * from user where userid=1")->row(), array('userid' => 1, 'firstname' => 'Bob', 'lastname' => 'Herder'));
    }