You are here

public function ConfigPageTest::testRequireOnPublishExists in Require on Publish 8

Test that the 'Required on Publish' field exists.

File

tests/src/FunctionalJavascript/ConfigPageTest.php, line 86

Class

ConfigPageTest
Tests the 'Require on Publish' functionality on field config pages.

Namespace

Drupal\Tests\require_on_publish\FunctionalJavascript

Code

public function testRequireOnPublishExists() {
  $this
    ->logIn();

  // Test that there is a checkbox for 'Required on Publish'.
  $this
    ->assertSession()
    ->fieldExists('require_on_publish');
}