You are here

public function ViewportResolverTest::testIsPathSelected in Viewport 8

Tests isPathSelected method solves filters out properly configured paths.

File

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

Class

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

Namespace

Drupal\Tests\viewport\Unit

Code

public function testIsPathSelected() {
  $this
    ->assertTrue($this->viewportResolver
    ->isPathSelected('/present-path'), 'Check for configured path.');
  $this
    ->assertFalse($this->viewportResolver
    ->isPathSelected('/not-present-path'), 'Check for non-configured path.');
}