You are here

public function testGmapFormsTestCase::runningOnTestbot in GMap Module 7.2

Same name and namespace in other branches
  1. 6.2 tests/gmap.test \testGmapFormsTestCase::runningOnTestbot()
  2. 7 tests/gmap.test \testGmapFormsTestCase::runningOnTestbot()

Detect if we're running on PIFR testbot; skip intentional failure in that case. It happens that on the testbot the site under test is in a directory named 'checkout' or 'site_under_test'.

Return value

boolean TRUE if running on testbot.

File

tests/gmap.test, line 141
Unit tests for gmap.module.

Class

testGmapFormsTestCase

Code

public function runningOnTestbot() {
  return file_exists("../checkout") || file_exists("../site_under_test");
}