You are here

protected function WebTestBase::isInChildSite in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/simpletest/src/WebTestBase.php \Drupal\simpletest\WebTestBase::isInChildSite()

Returns whether the test is being executed from within a test site.

Mainly used by recursive tests (i.e. to test the testing framework).

Return value

bool TRUE if this test was instantiated in a request within the test site, FALSE otherwise.

See also

\Drupal\Core\DrupalKernel::bootConfiguration()

7 calls to WebTestBase::isInChildSite()
BrokenSetUpTest::setUp in core/modules/simpletest/src/Tests/BrokenSetUpTest.php
Sets up a Drupal site for running functional and integration tests.
BrokenSetUpTest::tearDown in core/modules/simpletest/src/Tests/BrokenSetUpTest.php
Cleans up after testing.
BrokenSetUpTest::testMethod in core/modules/simpletest/src/Tests/BrokenSetUpTest.php
Runs this test case from within the simpletest child site.
MissingCheckedRequirementsTest::checkRequirements in core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php
Overrides checkRequirements().
MissingCheckedRequirementsTest::testCheckRequirements in core/modules/simpletest/src/Tests/MissingCheckedRequirementsTest.php
Ensures test will not run when requirements are missing.

... See full list

File

core/modules/simpletest/src/WebTestBase.php, line 1500
Contains \Drupal\simpletest\WebTestBase.

Class

WebTestBase
Test case for typical Drupal tests.

Namespace

Drupal\simpletest

Code

protected function isInChildSite() {
  return DRUPAL_TEST_IN_CHILD_SITE;
}