/**
* @author Bernhard Schussek <bschussek@gmail.com>
*/
abstract class BaseTypeTestCase extends TypeTestCase
{ use VersionAwareTest;
public const TESTED_TYPE = '';
public function testPassDisabledAsOption() { $form =
$this->factory->
create($this->
getTestedType(), null,
array_merge($this->
getTestOptions(),
['disabled' => true
]));
$this->
assertTrue($form->
isDisabled());
} public function testPassIdAndNameToView() { $view =
$this->factory->
createNamed('name',
$this->
getTestedType(), null,
$this->
getTestOptions()) ->
createView();
$this->
assertEquals('name',
$view->vars
['id'
]);
$this->
assertEquals('name',
$view->vars
['name'
]);