Example #1
0
 public function testGetNameWithAlias_Integer()
 {
     $field = new Field(array('name' => 'test', 'type' => 'integer'));
     $this->assertEquals('test_i', $field->getNameWithAlias());
 }
Example #2
0
 public function testCostomFieldType()
 {
     $field = new Field(array('name' => 'costumtype', 'type' => 'my_special_type'));
     $this->assertEquals('costumtype', $field->getNameWithAlias());
 }