js_example.test 875 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * @file
  4. * Test file for js_example module.
  5. */
  6. /**
  7. * Default test case for the js_example module.
  8. *
  9. * @ingroup js_example
  10. */
  11. class JsExampleTestCase extends DrupalWebTestCase {
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public static function getInfo() {
  16. return array(
  17. 'name' => 'JavaScript Example',
  18. 'description' => 'Functional tests for the JavaScript Example module.' ,
  19. 'group' => 'Examples',
  20. );
  21. }
  22. /**
  23. * {@inheritdoc}
  24. */
  25. public function setUp() {
  26. parent::setUp('js_example');
  27. }
  28. /**
  29. * Tests the menu paths defined in js_example module.
  30. */
  31. public function testJsExampleMenus() {
  32. $paths = array(
  33. 'js_example/weights',
  34. 'js_example/accordion',
  35. );
  36. foreach ($paths as $path) {
  37. $this->drupalGet($path);
  38. $this->assertResponse(200, '200 response for path: ' . $path);
  39. }
  40. }
  41. }