protected function NgLightboxTest::assertLightboxEnabled in NG Lightbox 8
Same name and namespace in other branches
- 2.x src/Tests/NgLightboxTest.php \Drupal\ng_lightbox\Tests\NgLightboxTest::assertLightboxEnabled()
Asserts the lightbox was enabled for the generated link.
Parameters
string $link: The rendered link.
1 call to NgLightboxTest::assertLightboxEnabled()
- NgLightboxTest::testPatternMatching in src/
Tests/ NgLightboxTest.php - Test the pattern matching for link paths.
File
- src/
Tests/ NgLightboxTest.php, line 76 - NG Lightbox tests.
Class
- NgLightboxTest
- Test basic functionality of the lightbox.
Namespace
Drupal\ng_lightbox\TestsCode
protected function assertLightboxEnabled($link) {
$this
->assertContains('use-ajax', $link);
$this
->assertContains('data-dialog-type', $link);
}