You are here

public function NgLightboxTest::testExternalUrl in NG Lightbox 8

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

Test with an External URL.

File

tests/src/Unit/NgLightboxTest.php, line 23
Contains \Drupal\Tests\ng_lightbox\Unit\NgLightboxTest

Class

NgLightboxTest
@coversDefaultClass \Drupal\ng_lightbox\NgLightbox @group ng_lightbox

Namespace

Drupal\Tests\ng_lightbox\Unit

Code

public function testExternalUrl() {
  $lightbox = $this
    ->getLightbox();
  $this
    ->assertEquals(FALSE, $lightbox
    ->isNgLightboxEnabledPath($this
    ->getUrlMock(TRUE)
    ->reveal()));
}