protected function ThunderJavascriptTestBase::isForkPullRequest in Thunder 8.4
Same name and namespace in other branches
- 8.5 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::isForkPullRequest()
- 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()
- 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.
2 calls to ThunderJavascriptTestBase::isForkPullRequest()
- LiveblogTest::testWithPusher in tests/
src/ FunctionalJavascript/ Integration/ LiveblogTest.php - Testing of module integration.
- RiddleTest::testRiddle in tests/
src/ FunctionalJavascript/ Integration/ RiddleTest.php - Testing integration of "thunder_riddle" module.
File
- tests/
src/ FunctionalJavascript/ ThunderJavascriptTestBase.php, line 429
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;
}