コード例 #1
0
 public function testEmptyDefaultStringThroughSetter()
 {
     $source = array(1 => 'one');
     $field = new DropdownField('Field', null, $source);
     $field->setEmptyString('select...');
     $this->assertEquals($field->getSource(), array('' => 'select...', 1 => 'one'));
     $this->assertTrue($field->getHasEmptyDefault());
 }