Changeset 4029 for branches/0.10/tests/Ticket/749TestCase.php
- Timestamp:
- 03/18/08 21:29:12 (2 years ago)
- Files:
-
- 1 modified
-
branches/0.10/tests/Ticket/749TestCase.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/0.10/tests/Ticket/749TestCase.php
r3884 r4029 46 46 public function testSelectDataFromSubclassAsCollection() 47 47 { 48 $records = Doctrine_Query::create()->query(' 49 FROM Record749 r ORDER BY r.title 50 ', array()); 48 $records = Doctrine_Query::create()->query('FROM Record749 r ORDER BY r.title', array()); 51 49 52 50 $this->verifyRecords($records); … … 55 53 public function testSelectDataFromParentClassAsCollection() 56 54 { 57 $records = Doctrine_Query::create()->query(' 58 FROM Parent749 p ORDER BY p.title 59 ', array()); 55 $records = Doctrine_Query::create()->query('FROM Parent749 p ORDER BY p.title', array()); 60 56 61 57 $this->verifyRecords($records); … … 79 75 $this->assertEqual($record['Related']['content'], $expected['content']); 80 76 } catch (Exception $e) { 81 $this->fail('Caught exception when trying to get related content .');77 $this->fail('Caught exception when trying to get related content: ' . $e->getMessage()); 82 78 } 83 79 } … … 99 95 $this->hasColumn('type', 'integer', 11, array ()); 100 96 101 $this-> option('subclasses', array('Record749'));97 $this->setSubclasses(array('Record749' => array('type' => 1))); 102 98 } 103 99 … … 120 116 $this->hasOne('RelatedRecord749 as Related', array('local' => 'id', 121 117 'foreign' => 'record_id')); 122 123 $this->setInheritanceMap(array('type' => '1'));124 118 } 125 119 }