From a3388622287e218beddfa14a47ed677d4307b36b Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Fri, 25 Mar 2016 17:55:51 +0100 Subject: Removed simpletest and moved all tests in the unit tree Tests are executed now, but a lot of them need fixing. --- tests/simple_unit/TableGateway/DeleteByPkTest.php | 51 ----------------------- 1 file changed, 51 deletions(-) delete mode 100644 tests/simple_unit/TableGateway/DeleteByPkTest.php (limited to 'tests/simple_unit/TableGateway/DeleteByPkTest.php') diff --git a/tests/simple_unit/TableGateway/DeleteByPkTest.php b/tests/simple_unit/TableGateway/DeleteByPkTest.php deleted file mode 100644 index 49b2d86c..00000000 --- a/tests/simple_unit/TableGateway/DeleteByPkTest.php +++ /dev/null @@ -1,51 +0,0 @@ -add_record1(); - $id = $this->getGateway()->getLastInsertId(); - $deleted = $this->getGateway()->deleteByPk($id); - - $this->assertEqual(1, $deleted); - } - - function test_delete_by_multiple_pk() - { - $this->add_record1(); - $id1 = $this->getGateway()->getLastInsertId(); - $this->add_record2(); - $id2 = $this->getGateway()->getLastInsertId(); - - $deleted = $this->getGateway()->deleteByPk($id1, $id2); - - $this->assertEqual(2, $deleted); - } - - function test_delete_by_multiple_pk2() - { - $this->add_record1(); - $id1 = $this->getGateway()->getLastInsertId(); - $this->add_record2(); - $id2 = $this->getGateway()->getLastInsertId(); - - $deleted = $this->getGateway()->deleteByPk(array($id1, $id2)); - - $this->assertEqual(2, $deleted); - } - - function test_delete_by_multiple_pk3() - { - $this->add_record1(); - $id1 = $this->getGateway()->getLastInsertId(); - $this->add_record2(); - $id2 = $this->getGateway()->getLastInsertId(); - - $deleted = $this->getGateway()->deleteByPk(array(array($id1), array($id2))); - - $this->assertEqual(2, $deleted); - } -} \ No newline at end of file -- cgit v1.2.3