Changeset 4725 for trunk/tests/Orm

Show
Ignore:
Timestamp:
08/02/08 18:41:37 (5 months ago)
Author:
romanb
Message:

Intermediate checkin.

Location:
trunk/tests/Orm
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/tests/Orm/Entity/AccessorTest.php

    r4699 r4725  
    1414        $this->assertEquals('romanb?!', $entity1->username); 
    1515    } 
    16      
    17      
    1816} 
    1917 
     
    4240    public function getUsernameCustom() 
    4341    { 
    44         return $this->_rawGetField('username') . "!"; 
     42        return $this->_get('username') . "!"; 
    4543    } 
    4644     
    4745    public function setUsernameCustom($username) 
    4846    { 
    49         $this->_rawSetField('username', $username . "?"); 
     47        $this->_set('username', $username . "?"); 
    5048    } 
    5149} 
     
    7068    public function getUsername() 
    7169    { 
    72         return $this->_rawGetField('username') . "!"; 
     70        return $this->_get('username') . "!"; 
    7371    } 
    7472     
    7573    public function setUsername($username) 
    7674    { 
    77         $this->_rawSetField('username', $username . "?"); 
     75        $this->_set('username', $username . "?"); 
    7876    }  
    7977} 
  • trunk/tests/Orm/Query/SelectSqlGenerationTest.php

    r4523 r4725  
    135135        $this->assertSqlGeneration( 
    136136            "SELECT u.name FROM CmsUser u WHERE TRIM(u.name) = 'someone'", 
    137             "SELECT cu.name AS cu__name FROM cms_user cu WHERE TRIM(cu.name) = ''someone''" // SQLite double slashes for strings 
     137            // String quoting in the SQL usually depends on the database platform. 
     138            // This test works with a mock connection which uses ' for string quoting. 
     139            "SELECT cu.name AS cu__name FROM cms_user cu WHERE TRIM(cu.name) = 'someone'" 
    138140        ); 
    139141    }