Changeset 4439 for branches/0.11/tests

Show
Ignore:
Timestamp:
05/25/08 22:36:03 (8 months ago)
Author:
jwage
Message:

Cleanup, standards, documentation, etc.

Location:
branches/0.11/tests
Files:
2 added
2 modified

Legend:

Unmodified
Added
Removed
  • branches/0.11/tests/models/SoftDeleteTest.php

    r2353 r4439  
    66        $this->hasColumn('name', 'string', null, array('primary' => true)); 
    77        $this->hasColumn('something', 'string', '25', array('notnull' => true, 'unique' => true)); 
    8         $this->hasColumn('deleted', 'boolean', 1); 
    98    } 
    10     public function preDelete($event) 
     9 
     10    public function setUp() 
    1111    { 
    12         $event->skipOperation(); 
    13     } 
    14     public function postDelete($event) 
    15     { 
    16         $this->deleted = true; 
    17  
    18         $this->save(); 
     12        $this->actAs('SoftDelete'); 
    1913    } 
    2014} 
  • branches/0.11/tests/run.php

    r4409 r4439  
    209209$behaviors->addTestCase(new Doctrine_Sluggable_TestCase()); 
    210210$behaviors->addTestCase(new Doctrine_Record_Generator_TestCase()); 
     211$behaviors->addTestCase(new Doctrine_SoftDelete_TestCase()); 
    211212$test->addTestCase($behaviors); 
    212213