Changeset 4653 for trunk/tests/Orm
- Timestamp:
- 07/10/08 18:17:58 (6 months ago)
- Location:
- trunk/tests/Orm/Entity
- Files:
-
- 2 modified
-
AccessorTestCase.php (modified) (2 diffs)
-
ConstructorTest.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/Orm/Entity/AccessorTestCase.php
r4523 r4653 23 23 public static function initMetadata($class) 24 24 { 25 $class->mapColumn('id', 'integer', 4, array('primary')); 25 26 $class->mapColumn('username', 'string', 50, array( 26 27 'accessor' => 'getUsernameCustom', … … 43 44 public static function initMetadata($class) 44 45 { 46 $class->mapColumn('id', 'integer', 4, array('primary')); 45 47 $class->mapColumn('username', 'string', 50, array()); 46 48 } -
trunk/tests/Orm/Entity/ConstructorTest.php
r4524 r4653 7 7 { 8 8 $entity = new ConstructorTestEntity1("romanb"); 9 $this->assertTrue($entity->is Transient());9 $this->assertTrue($entity->isNew()); 10 10 $this->assertEquals("romanb", $entity->username); 11 11 } … … 17 17 { 18 18 parent::__construct(); 19 if ($this->is Transient()) {19 if ($this->isNew()) { 20 20 $this->username = $username; 21 21 } … … 25 25 public static function initMetadata($class) 26 26 { 27 $class->mapColumn('id', 'integer', 4, array('primary')); 27 28 $class->mapColumn('username', 'string', 50, array()); 28 29 }