Skip to content
Snippets Groups Projects

Draft: issue/3390193: Add drupalGet() to KernelTestBase

#close 9043

Edited by Pooja Sharma

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
121 /**
122 * Creates the directory to store browser output.
123 *
124 * Creates the directory to store browser output in if a file to write
125 * URLs to has been created by \Drupal\Tests\Listeners\HtmlOutputPrinter.
126 */
127 protected function initBrowserOutputFile() {
128 $browser_output_file = getenv('BROWSERTEST_OUTPUT_FILE');
129 $this->htmlOutputEnabled = is_file($browser_output_file);
130 if (empty($GLOBALS['base_url'])) {
131 $base_url = 'http://example.com';
132 }
133 else {
134 $base_url = $GLOBALS['base_url'];
135 }
136 $this->htmlOutputBaseUrl = getenv('BROWSERTEST_OUTPUT_BASE_URL') ?: $base_url;
  • Comment on lines +130 to +136

    TO debug pipeline test failure, added empty condition, which make clear one of these variables(getenv('BROWSERTEST_OUTPUT_BASE_URL') ?: $GLOBALS['base_url'];) not set on gitlab , as issue not replicate on local.

  • Please register or sign in to reply
  • Pooja Sharma changed the description

    changed the description

  • Pooja Sharma marked this merge request as draft

    marked this merge request as draft

  • Please register or sign in to reply
    Loading