Show
Ignore:
Timestamp:
07/24/08 04:27:56 (6 months ago)
Author:
guilhermeblanco
Message:

Added coverage to ticket #1265. Unable to reproduce user assertion. Marking as works for me.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/1.0/tests/RecordTestCase.php

    r4341 r4711  
    393393        $this->assertEqual($user->updated, null); 
    394394        $this->assertEqual($user->getTable()->getData(), array()); 
    395  
    396     } 
     395    } 
     396     
     397     
     398    public function testUnknownFieldGet() 
     399    { 
     400        $user = new User(); 
     401        $user->name = "Jack Daniels"; 
     402        $user->save(); 
     403         
     404        try { 
     405            $foo = $user->unexistentColumnInThisClass; 
     406 
     407            $this->fail(); 
     408        } catch (Doctrine_Record_Exception $e) { 
     409            $this->pass(); 
     410        } 
     411 
     412        try { 
     413            $foo = $user->get('unexistentColumnInThisClass'); 
     414 
     415            $this->fail(); 
     416        } catch (Doctrine_Record_Exception $e) { 
     417            $this->pass(); 
     418        } 
     419    } 
     420 
    397421 
    398422    public function testNewOperator()