You are here

protected function NgLightboxTest::assertLightboxNotEnabled in NG Lightbox 8

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

Asserts the lightbox was not enabled for the generated link.

Parameters

string $link: The rendered link.

1 call to NgLightboxTest::assertLightboxNotEnabled()
NgLightboxTest::testPatternMatching in src/Tests/NgLightboxTest.php
Test the pattern matching for link paths.

File

src/Tests/NgLightboxTest.php, line 87
NG Lightbox tests.

Class

NgLightboxTest
Test basic functionality of the lightbox.

Namespace

Drupal\ng_lightbox\Tests

Code

protected function assertLightboxNotEnabled($link) {
  $this
    ->assertNotContains('use-ajax', $link);
  $this
    ->assertNotContains('data-dialog-type', $link);
}