Lazer\Classes\DatabaseTest::testDelete PHP Method

testDelete() public method

public testDelete ( )
    public function testDelete()
    {
        $table = $this->object->table('order');
        $table->find(1)->delete();
        $this->assertSame(0, $table->where('id', '=', 1)->findAll()->count());
        $table->where('category', '=', 'b')->delete();
        $this->assertSame(0, $table->where('category', '=', 'b')->findAll()->count());
        $table->delete();
        $this->assertSame(0, $table->findAll()->count());
    }