You are here

public function JsExampleTestCase::testJsExampleMenus in Examples for Developers 7

Tests the menu paths defined in js_example module.

File

js_example/js_example.test, line 36
Test file for js_example module.

Class

JsExampleTestCase
Default test case for the js_example module.

Code

public function testJsExampleMenus() {
  $paths = array(
    'js_example/weights',
    'js_example/accordion',
  );
  foreach ($paths as $path) {
    $this
      ->drupalGet($path);
    $this
      ->assertResponse(200, '200 response for path: ' . $path);
  }
}