summaryrefslogtreecommitdiff
path: root/tests/simple_unit/TableGateway/DeleteByPkTest.php
diff options
context:
space:
mode:
authorctrlaltca <>2012-07-12 11:21:01 +0000
committerctrlaltca <>2012-07-12 11:21:01 +0000
commit903ae8a581fac1e6917fc3e31d2ad8fb91df80c3 (patch)
treee08bf04f0823650a231227ac3499121270172a23 /tests/simple_unit/TableGateway/DeleteByPkTest.php
parent3e4e6e66aeb3f8fea4e1eb4237498ef9d2358f63 (diff)
standardize the use of unix eol; use svn properties to enforce native eol
Diffstat (limited to 'tests/simple_unit/TableGateway/DeleteByPkTest.php')
-rw-r--r--tests/simple_unit/TableGateway/DeleteByPkTest.php98
1 files changed, 49 insertions, 49 deletions
diff --git a/tests/simple_unit/TableGateway/DeleteByPkTest.php b/tests/simple_unit/TableGateway/DeleteByPkTest.php
index 120b63e9..57d9dd31 100644
--- a/tests/simple_unit/TableGateway/DeleteByPkTest.php
+++ b/tests/simple_unit/TableGateway/DeleteByPkTest.php
@@ -1,52 +1,52 @@
<?php
-
-require_once(dirname(__FILE__).'/BaseGatewayTest.php');
-
-class DeleteByPkTest extends BaseGatewayTest
-{
- function test_delete_by_1_pk()
- {
- $this->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);
- }
+
+require_once(dirname(__FILE__).'/BaseGatewayTest.php');
+
+class DeleteByPkTest extends BaseGatewayTest
+{
+ function test_delete_by_1_pk()
+ {
+ $this->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