public function UiTest::testUiNotPresentWithoutModeration in Lightning Scheduler 8
File
- tests/
src/ FunctionalJavascript/ UiTest.php, line 34
Class
- UiTest
- @group lightning_scheduler
Namespace
Drupal\Tests\lightning_scheduler\FunctionalJavascriptCode
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');
}