Draft: issue/3390193: Add drupalGet() to KernelTestBase
      1 open thread
      
#close 9043
Edited  by Pooja Sharma
Merge request reports
Activity
- added 1901 commits - 
4d9df1a8...6b50d024 - 1900 commits from branch project:11.x
- 0917892a - issue/3390193: Added KernelHtmlDebugTrait
 
- 
4d9df1a8...6b50d024 - 1900 commits from branch 
- added 1 commit - bb8a683b - issue/3390193: Added testDrupalGet() in KernelTestBaseTest
 
- 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; 
Please register or sign in to reply
