|
@@ -54,13 +54,17 @@ class BaseFieldDescriptionTest extends \PHPUnit_Framework_TestCase
|
|
$this->assertEquals('foo.twig.html', $description->getTemplate());
|
|
$this->assertEquals('foo.twig.html', $description->getTemplate());
|
|
$this->assertEquals('fooHelp', $description->getHelp());
|
|
$this->assertEquals('fooHelp', $description->getHelp());
|
|
|
|
|
|
- $this->assertCount(0, $description->getOptions());
|
|
|
|
|
|
+ $this->assertCount(1, $description->getOptions());
|
|
|
|
|
|
$description->setHelp('Please enter an integer');
|
|
$description->setHelp('Please enter an integer');
|
|
$this->assertEquals('Please enter an integer', $description->getHelp());
|
|
$this->assertEquals('Please enter an integer', $description->getHelp());
|
|
|
|
|
|
$description->setMappingType('int');
|
|
$description->setMappingType('int');
|
|
$this->assertEquals('int', $description->getMappingType());
|
|
$this->assertEquals('int', $description->getMappingType());
|
|
|
|
+
|
|
|
|
+ $this->assertEquals('short_object_description_placeholder', $description->getOption('placeholder'));
|
|
|
|
+ $description->setOptions(array('placeholder' => false));
|
|
|
|
+ $this->assertFalse($description->getOption('placeholder'));
|
|
}
|
|
}
|
|
|
|
|
|
public function testAdmin()
|
|
public function testAdmin()
|