diff --git a/tests/Query/UpdateTestCase.php b/tests/Query/UpdateTestCase.php index e503625f7..ef3f6a42d 100644 --- a/tests/Query/UpdateTestCase.php +++ b/tests/Query/UpdateTestCase.php @@ -1,6 +1,40 @@ . + */ + +/** + * Doctrine_Query_Delete_TestCase + * This test case is used for testing DQL UPDATE queries + * + * @package Doctrine + * @author Konsta Vesterinen + * @license http://www.opensource.org/licenses/lgpl-license.php LGPL + * @category Object Relational Mapping + * @link www.phpdoctrine.com + * @since 1.0 + * @version $Revision$ + */ +class Doctrine_Query_Update_TestCase extends Doctrine_UnitTestCase +{ + public function testUpdateAllWithColumnAggregationInheritance() + { $q = new Doctrine_Query(); $q->parseQuery("UPDATE User u SET u.name = 'someone'"); @@ -13,7 +47,8 @@ class Doctrine_Query_Update_TestCase extends Doctrine_UnitTestCase { $this->assertEqual($q->getQuery(), "UPDATE entity SET name = 'someone' WHERE (type = 0)"); } - public function testUpdateWorksWithMultipleColumns() { + public function testUpdateWorksWithMultipleColumns() + { $q = new Doctrine_Query(); $q->parseQuery("UPDATE User u SET u.name = 'someone', u.email_id = 5"); @@ -26,7 +61,8 @@ class Doctrine_Query_Update_TestCase extends Doctrine_UnitTestCase { $this->assertEqual($q->getQuery(), "UPDATE entity SET name = 'someone', email_id = 5 WHERE (type = 0)"); } - public function testUpdateSupportsConditions() { + public function testUpdateSupportsConditions() + { $q = new Doctrine_Query(); $q->parseQuery("UPDATE User u SET u.name = 'someone' WHERE u.id = 5");