diff --git a/tests/Relation/ManyToMany2TestCase.php b/tests/Relation/ManyToMany2TestCase.php index b53514b0c..909dc8fb1 100644 --- a/tests/Relation/ManyToMany2TestCase.php +++ b/tests/Relation/ManyToMany2TestCase.php @@ -1,14 +1,49 @@ . + */ + +/** + * Doctrine_Relation_Parser_TestCase + * + * @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_Relation_ManyToMany2_TestCase extends Doctrine_UnitTestCase +{ + public function prepareData() + { } - public function prepareTables() { + public function prepareTables() + { $this->tables = array('TestUser', 'TestMovie', 'TestMovieUserBookmark', 'TestMovieUserVote'); parent::prepareTables(); } - public function testManyToManyCreateSelectAndUpdate() { + public function testManyToManyCreateSelectAndUpdate() + { $user = new TestUser(); $user['name'] = 'tester'; $user->save(); @@ -32,12 +67,12 @@ class Doctrine_Relation_ManyToMany2_TestCase extends Doctrine_UnitTestCase { $newdata->save(); //big failure here $this->pass(); } catch(Doctrine_Exception $e) { - print $e; $this->fail(); } } - public function testManyToManyJoinsandSave() { + public function testManyToManyJoinsandSave() + { $q = new Doctrine_Query(); $newdata = $q->select('d.*, i.*, u.*, c.*') ->from('TestMovie d, d.MovieBookmarks i, i.UserVotes u, u.User c')