You are here

public function StyleJumpMenuTest::testJumpMenuLibrary in Views Jump Menu 8

Tests jump menu JavaScript library.

File

tests/src/Functional/Plugin/StyleJumpMenuTest.php, line 70

Class

StyleJumpMenuTest
Tests the Jump Menu style views plugin.

Namespace

Drupal\Tests\views_jump_menu\Functional\Plugin

Code

public function testJumpMenuLibrary() {
  $viewsJumpMenuModulePath = drupal_get_path('module', 'views_jump_menu');

  // Navigate to the test view.
  $this
    ->drupalGet('test-style-jump-menu');

  // Check that the library was output onto the page.
  $this
    ->assertRaw($viewsJumpMenuModulePath . '/js/views-jump-menu.js');
}