You are here

public function SimpletestUnitTestExampleTestCase::runningOnTestbot in Calendar Systems 7.2

Same name and namespace in other branches
  1. 8 simpletest_calendar_systems.test \SimpletestUnitTestExampleTestCase::runningOnTestbot()
  2. 6.3 simpletest_calendar_systems.test \SimpletestUnitTestExampleTestCase::runningOnTestbot()
  3. 6 simpletest_calendar_systems.test \SimpletestUnitTestExampleTestCase::runningOnTestbot()
  4. 7.3 simpletest_calendar_systems.test \SimpletestUnitTestExampleTestCase::runningOnTestbot()
  5. 7 simpletest_calendar_systems.test \SimpletestUnitTestExampleTestCase::runningOnTestbot()

Detect if we're running on Drupal.org's automated testbot.

This is used inside the edit test so that the testbot skips intentionally failing tests. Otherwise, it would mark this module as broken.

For more information on the testbot, see http://qa.drupal.org/.

Return value

boolean TRUE if running on testbot.

File

./simpletest_calendar_systems.test, line 70

Class

SimpletestUnitTestExampleTestCase

Code

public function runningOnTestbot() {
  $testbot_code_directory = "../checkout";
  return file_exists($testbot_code_directory);
}