Changeset 4313

Show
Ignore:
Timestamp:
04/30/08 18:14:41 (14 months ago)
Author:
jwage
Message:

fixes #889

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/tests/Ticket/889TestCase.php

    r4181 r4313  
    5555            $this->fail(); 
    5656        } 
    57         $this->assertTrue($rel instanceof Doctrine_Relation_ForeignKey); 
     57        $this->assertEqual(get_class($rel), 'Doctrine_Relation_Nest'); 
    5858 
    5959        $this->assertTrue($component->Children instanceof Doctrine_Collection); 
     
    7373            $this->fail(); 
    7474        } 
    75         $this->assertTrue($rel instanceof Doctrine_Relation_ForeignKey); 
     75        $this->assertEqual(get_class($rel), 'Doctrine_Relation_Nest'); 
    7676 
    7777        $this->assertTrue($component->Parents instanceof Doctrine_Collection); 
     
    190190        ); 
    191191    } 
     192 
     193    public function setUp() 
     194    { 
     195        $this->hasOne('Ticket_889 as Parent', array('local'     => 'parent_id', 
     196                                                    'foreign'   => 'id', 
     197                                                    'onDelete'  => 'CASCADE')); 
     198 
     199        $this->hasOne('Ticket_889 as Child', array('local'     => 'child_id', 
     200                                                   'foreign'   => 'id', 
     201                                                   'onDelete'  => 'CASCADE')); 
     202    } 
    192203}