function SimpleTestFunctionalTest::inCURL
Check if the test is being run from inside a CURL request.
4 calls to SimpleTestFunctionalTest::inCURL()
- SimpleTestFunctionalTest::setUp in modules/
simpletest/ simpletest.test - Sets up a Drupal site for running functional and integration tests.
- SimpleTestFunctionalTest::testInternalBrowser in modules/
simpletest/ simpletest.test - Test the internal browsers functionality.
- SimpleTestFunctionalTest::testUserAgentValidation in modules/
simpletest/ simpletest.test - Test validation of the User-Agent header we use to perform test requests.
- SimpleTestFunctionalTest::testWebTestRunner in modules/
simpletest/ simpletest.test - Make sure that tests selected through the web interface are run and that the results are displayed correctly.
File
-
modules/
simpletest/ simpletest.test, line 341
Class
- SimpleTestFunctionalTest
- @file Tests for simpletest.module.
Code
function inCURL() {
return (bool) drupal_valid_test_ua();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.