Exemplo n.º 1
0
 public function testQueryDelete()
 {
     $this->clearFixtures();
     $this->loadFixtures();
     $this->queryBuilder->expects($this->any())->method('getQueryString')->will($this->returnValue("DELETE FROM book WHERE id = 1"));
     $this->setQueryType(QueryBuilder::TYPE_DELETE);
     $this->assertEquals(1, $this->queryBuilder->query());
 }