You are here

public function ViewportResolverTest::testIsPathSelectedNormalisesPathString in Viewport 8

Tests isPathSelected method solves paths passed as uppercase.

File

tests/src/Unit/ViewportResolverTest.php, line 89

Class

ViewportResolverTest
@coversDefaultClass \Drupal\viewport\ViewportResolver @group viewport

Namespace

Drupal\Tests\viewport\Unit

Code

public function testIsPathSelectedNormalisesPathString() {
  $this
    ->assertTrue($this->viewportResolver
    ->isPathSelected('/pReSent-PATH'), 'Check for configured path.');
}