vertical_tabs_example.test 930 B

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