protected function ThunderJavascriptTestBase::isForkPullRequest in Thunder 6.2.x
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()
- 8.4 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.
File
- tests/
src/ FunctionalJavascript/ ThunderJavascriptTestBase.php, line 436
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;
}