You are here

protected function ThunderJavascriptTestBase::isForkPullRequest in Thunder 6.0.x

Same name and namespace in other branches
  1. 8.5 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
  2. 8.2 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
  3. 8.3 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
  4. 8.4 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
  5. 6.2.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()
LiveblogTest::testWithPusher in tests/src/FunctionalJavascript/Integration/LiveblogTest.php
Testing of module integration.

File

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

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;
}