public function BaseFieldsTest::testBaseFieldDefinitions in Lightning Workflow 8.3
File
- modules/
lightning_scheduler/ tests/ src/ Kernel/ BaseFieldsTest.php, line 22
Class
- BaseFieldsTest
- @group lightning_scheduler
Namespace
Drupal\Tests\lightning_scheduler\KernelCode
public function testBaseFieldDefinitions() {
/** @var \Drupal\Core\Field\FieldDefinitionInterface[] $field_definitions */
$field_definitions = $this->container
->get('entity_field.manager')
->getBaseFieldDefinitions('node');
$this
->assertEquals('Scheduled transition date', $field_definitions['scheduled_transition_date']
->getLabel());
$this
->assertEquals('Scheduled transition state', $field_definitions['scheduled_transition_state']
->getLabel());
}