You are here

protected function ThunderJavascriptTestBase::isForkPullRequest in Thunder 8.5

Same name and namespace in other branches
  1. 8.2 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
  2. 8.3 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
  3. 8.4 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
  4. 6.2.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
  5. 6.0.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
  6. 6.1.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()

Checks if pull request is from fork.

Return value

bool Returns if pull request is from Fork.

1 call to ThunderJavascriptTestBase::isForkPullRequest()
RiddleTest::testRiddle in tests/src/FunctionalJavascript/Integration/RiddleTest.php
Testing integration of "thunder_riddle" module.

File

tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php, line 438

Class

ThunderJavascriptTestBase
Base class for Thunder Javascript functional tests.

Namespace

Drupal\Tests\thunder\FunctionalJavascript

Code

protected function isForkPullRequest() {
  $pullRequestSlag = getenv('TRAVIS_PULL_REQUEST_SLUG');
  $repoSlag = getenv('TRAVIS_REPO_SLUG');
  return !empty($pullRequestSlag) && $pullRequestSlag !== $repoSlag;
}