tabledrag_example.test 950 B

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