You are here

public function UiTest::testUiNotPresentWithoutModeration in Lightning Workflow 8.3

File

modules/lightning_scheduler/tests/src/FunctionalJavascript/UiTest.php, line 42

Class

UiTest
@group lightning @group lightning_workflow @group lightning_scheduler

Namespace

Drupal\Tests\lightning_scheduler\FunctionalJavascript

Code

public function testUiNotPresentWithoutModeration() {
  $account = $this
    ->drupalCreateUser([], NULL, TRUE);
  $this
    ->drupalLogin($account);
  $node_type = $this
    ->createContentType()
    ->id();
  $this
    ->drupalGet('/node/add/' . $node_type);
  $this
    ->assertSession()
    ->fieldNotExists('moderation_state[0][state]');
  $this
    ->assertSession()
    ->linkNotExists('Schedule a status change');
}