Esempio n. 1
0
 public function testDeleteMakes()
 {
     $dataSet = new PHPUnit_Extensions_Database_DataSet_CsvDataSet();
     $delete = new deleteMake();
     $delete->deletesMake('Fluke');
     $resultingTable = $this->getConnection()->createQueryTable("makes", "SELECT * FROM makes");
     $expectedTable = $this->createXmlDataSet("makestest_bool_delete.xml")->getTable("makes");
     $this->assertTablesEqual($expectedTable, $resultingTable);
 }
Esempio n. 2
0
 public function testDeleteMakes()
 {
     $dataSet = new PHPUnit_Extensions_Database_DataSet_CsvDataSet();
     $delete = new deleteMake();
     $delete->deletesMake(array("make_id" => "164", "makeName" => "Lorem", "created_at" => "2011-04-06 10:0:00", "updated_at" => "2011-04-06 10:02:00"));
     $resultingTable = $this->getConnection()->createQueryTable("makes", "SELECT * FROM makes");
     $expectedTable = $this->createXmlDataSet("makestest.xml")->getTable("makes");
     $this->assertTablesEqual($expectedTable, $resultingTable);
 }