public function NgLightboxTest::testHashOnlyUrls in NG Lightbox 8
Same name and namespace in other branches
- 2.x tests/src/Kernel/NgLightboxTest.php \Drupal\Tests\ng_lightbox\Kernel\NgLightboxTest::testHashOnlyUrls()
Test a URL that only has a hash.
File
- tests/
src/ Kernel/ NgLightboxTest.php, line 23
Class
- NgLightboxTest
- Test the NG Lightbox service.
Namespace
Drupal\Tests\ng_lightbox\KernelCode
public function testHashOnlyUrls() {
$url = Url::fromUserInput('#hash-only-url');
$this
->assertFalse($this->container
->get('ng_lightbox')
->isNgLightboxEnabledPath($url));
}