You are here

public function BaseFieldsTest::testBaseFieldDefinitions in Lightning Scheduler 8

File

tests/src/Kernel/BaseFieldsTest.php, line 22

Class

BaseFieldsTest
@group lightning_scheduler

Namespace

Drupal\Tests\lightning_scheduler\Kernel

Code

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());
}