function HtmlToTextTest::setUp

Same name in other branches
  1. 10 core/modules/system/tests/src/Unit/Mail/HtmlToTextTest.php \Drupal\Tests\system\Unit\Mail\HtmlToTextTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/system/tests/src/Unit/Mail/HtmlToTextTest.php, line 22

Class

HtmlToTextTest
Tests for \Drupal\Core\Mail\MailFormatHelper::htmlToText().

Namespace

Drupal\Tests\system\Unit\Mail

Code

public function setUp() : void {
    parent::setUp();
    $GLOBALS['base_path'] = '/';
    $GLOBALS['base_url'] = 'http://localhost';
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.