Changeset 3557

Show
Ignore:
Timestamp:
01/19/08 21:25:39 (18 months ago)
Author:
pookey
Message:

refs #741

Location:
branches/0.9/tests
Files:
1 modified
1 moved

Legend:

Unmodified
Added
Removed
  • branches/0.9/tests/run.php

    r3555 r3557  
    1818$tickets->addTestCase(new Doctrine_Ticket_576_TestCase()); 
    1919$tickets->addTestCase(new Doctrine_Ticket_583_TestCase()); 
    20 $tickets->addTestCase(new Doctrine_Ticket_XXX_TestCase()); 
     20$tickets->addTestCase(new Doctrine_Ticket_741_TestCase()); 
    2121//If you write a ticket testcase add it here like shown above! 
    2222$test->addTestCase($tickets); 
  • branches/0.9/tests/Ticket/741TestCase.php

    r3556 r3557  
    22 
    33 
    4 class Doctrine_Ticket_XXX_TestCase extends Doctrine_UnitTestCase 
     4class Doctrine_Ticket_741_TestCase extends Doctrine_UnitTestCase 
    55{ 
    66 
     
    6666  } 
    6767 
    68   public function preInsert($e) 
     68  public function postInsert($e) 
    6969  { 
    7070     
    71     echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 
     71    //echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 
    7272    $this->Moo->amount = 0; 
    73     echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 
     73    //echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 
    7474    $this->Moo->save(); 
    75     echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 
     75    //echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 
    7676    $this->Moo->refresh(); 
    77     echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 
     77    //echo "State: ". $this->Moo->state() . " \t Amount: " . $this->Moo->amount . "\n"; 
     78    /* 
     79      This outputs the following 
     80      State: 6         Amount: 1000 
     81      State: 6         Amount: 0 
     82      State: 6         Amount: 0 
     83      State: 3         Amount: 1000 
     84 
     85    */ 
    7886  } 
    7987}