public function BrokenWidgetTest::testIsApplicable in Typed Data API enhancements 8
@covers ::isApplicable
Overrides FormWidgetBrowserTestBase::testIsApplicable
File
- tests/
src/ Functional/ TypedDataFormWidget/ BrokenWidgetTest.php, line 37
Class
- BrokenWidgetTest
- Class BrokenWidgetTest.
Namespace
Drupal\Tests\typed_data\Functional\TypedDataFormWidgetCode
public function testIsApplicable() {
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('any')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('binary')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('boolean')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('datetime_iso8601')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('duration_iso8601')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('email')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('float')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('integer')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('string')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('timespan')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('timestamp')));
$this
->assertTrue($this->widget
->isApplicable(DataDefinition::create('uri')));
$this
->assertTrue($this->widget
->isApplicable(ListDataDefinition::create('string')));
$this
->assertTrue($this->widget
->isApplicable(MapDataDefinition::create()));
}