You are here

public function NgLightboxTest::testEmptyPath in NG Lightbox 2.x

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

Test with an empty path.

File

tests/src/Unit/NgLightboxTest.php, line 35

Class

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

Namespace

Drupal\Tests\ng_lightbox\Unit

Code

public function testEmptyPath() {
  $lightbox = $this
    ->getLightbox(FALSE);
  $url = $this
    ->getUrlMock();
  $url
    ->toString()
    ->willReturn('');
  $this
    ->assertEquals(FALSE, $lightbox
    ->isNgLightboxEnabledPath($url
    ->reveal()));
}