protected function ThunderJavascriptTestBase::isForkPullRequest in Thunder 8.5
Same name and namespace in other branches
- 8.2 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
- 8.3 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
- 8.4 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
- 6.2.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
- 6.0.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
- 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\FunctionalJavascriptCode
protected function isForkPullRequest() {
$pullRequestSlag = getenv('TRAVIS_PULL_REQUEST_SLUG');
$repoSlag = getenv('TRAVIS_REPO_SLUG');
return !empty($pullRequestSlag) && $pullRequestSlag !== $repoSlag;
}