BaseFieldsTest.php in Lightning Scheduler 8
File
tests/src/Kernel/BaseFieldsTest.php
View source
<?php
namespace Drupal\Tests\lightning_scheduler\Kernel;
use Drupal\KernelTests\KernelTestBase;
class BaseFieldsTest extends KernelTestBase {
protected static $modules = [
'content_moderation',
'lightning_scheduler',
'node',
'workflows',
];
public function testBaseFieldDefinitions() {
$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());
}
}