You are here

public function NgLightboxTest::testAdminSkipPaths 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::testAdminSkipPaths()

Test the admin_skip_path settings.

File

tests/src/Unit/NgLightboxTest.php, line 31
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 testAdminSkipPaths() {

  // Admin skip paths enabled and admin route.
  $lightbox = $this
    ->getLightbox();
  $this
    ->assertEquals(FALSE, $lightbox
    ->isNgLightboxEnabledPath($this
    ->getUrlMock()
    ->reveal()));
}