You are here

public function NgLightboxWebTest::testDefaultModal in NG Lightbox 8

Same name and namespace in other branches
  1. 2.x src/Tests/NgLightboxWebTest.php \Drupal\ng_lightbox\Tests\NgLightboxWebTest::testDefaultModal()

Test that we can render a modal even before selecting one from the admin.

File

src/Tests/NgLightboxWebTest.php, line 43
Contains \Drupal\ng_lightbox\Tests\NgLightboxWebTest

Class

NgLightboxWebTest
A web test for NG Lightbox.

Namespace

Drupal\ng_lightbox\Tests

Code

public function testDefaultModal() {
  $this
    ->drupalGet('/node');
  $this
    ->assertRaw('data-dialog-type="modal"');
}