|
4104 - in trunk/PersistentObject/tests: . data [eZComponents: Trunk]: msg#00274web.ezcomponents.cvs
Author: Tobias Schlitt Date: 2006-11-28 13:26:39 +0100 (Tue, 28 Nov 2006) New Revision: 4104 Log: - Added another test record. Updated tests accordingly. # Neede for future test case. Modified: trunk/PersistentObject/tests/data/relation.sql trunk/PersistentObject/tests/data/relation_test.php trunk/PersistentObject/tests/one_to_many_relation_test.php Modified: trunk/PersistentObject/tests/data/relation.sql =================================================================== --- trunk/PersistentObject/tests/data/relation.sql 2006-11-28 12:06:22 UTC (rev 4103) +++ trunk/PersistentObject/tests/data/relation.sql 2006-11-28 12:26:39 UTC (rev 4104) @@ -71,6 +71,7 @@ INSERT INTO `PO_employers` (`id`, `name`) VALUES (1, 'Great Web 2.0 company'); INSERT INTO `PO_employers` (`id`, `name`) VALUES (2, 'Oldschool Web 1.x company'); +INSERT INTO `PO_employers` (`id`, `name`) VALUES (3, 'Very oldschool print media company'); -- -------------------------------------------------------- Modified: trunk/PersistentObject/tests/data/relation_test.php =================================================================== --- trunk/PersistentObject/tests/data/relation_test.php 2006-11-28 12:06:22 UTC (rev 4103) +++ trunk/PersistentObject/tests/data/relation_test.php 2006-11-28 12:26:39 UTC (rev 4104) @@ -18,6 +18,7 @@ $db->exec( "INSERT INTO `PO_employers` (`name`) VALUES ('Great Web 2.0 company');" ); $db->exec( "INSERT INTO `PO_employers` (`name`) VALUES ('Oldschool Web 1.x company');" ); + $db->exec( "INSERT INTO `PO_employers` (`name`) VALUES ('Very oldschool print media company');" ); $db->exec( "INSERT INTO `PO_persons` (`firstname`, `surname`, `employer`) VALUES ('Theodor', 'Gopher', 2);" ); $db->exec( "INSERT INTO `PO_persons` (`firstname`, `surname`, `employer`) VALUES ('Frederick', 'Ajax', 1);" ); Modified: trunk/PersistentObject/tests/one_to_many_relation_test.php =================================================================== --- trunk/PersistentObject/tests/one_to_many_relation_test.php 2006-11-28 12:06:22 UTC (rev 4103) +++ trunk/PersistentObject/tests/one_to_many_relation_test.php 2006-11-28 12:26:39 UTC (rev 4104) @@ -530,7 +530,7 @@ $stmt->execute(); $this->assertEquals( - 1, + 2, $stmt->fetchColumn(), "Employer not correctly deleted directly." ); |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | 4103 - trunk/Template/src/syntax_trees/tst/nodes [eZComponents: Trunk]: 00274, Raymond Bosman |
|---|---|
| Next by Date: | 4105 - in trunk/PersistentObject: . src tests [eZComponents: Trunk]: 00274, Tobias Schlitt |
| Previous by Thread: | 4103 - trunk/Template/src/syntax_trees/tst/nodes [eZComponents: Trunk]i: 00274, Raymond Bosman |
| Next by Thread: | 4105 - in trunk/PersistentObject: . src tests [eZComponents: Trunk]: 00274, Tobias Schlitt |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |