function MessagesTest::setUp

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Unit/Plugin/area/MessagesTest.php \Drupal\Tests\views\Unit\Plugin\area\MessagesTest::setUp()
  2. 8.9.x core/modules/views/tests/src/Unit/Plugin/area/MessagesTest.php \Drupal\Tests\views\Unit\Plugin\area\MessagesTest::setUp()
  3. 10 core/modules/views/tests/src/Unit/Plugin/area/MessagesTest.php \Drupal\Tests\views\Unit\Plugin\area\MessagesTest::setUp()

Overrides UnitTestCase::setUp

File

core/modules/views/tests/src/Unit/Plugin/area/MessagesTest.php, line 33

Class

MessagesTest
@coversDefaultClass <a href="/api/drupal/core%21modules%21views%21src%21Plugin%21views%21area%21Messages.php/class/Messages/11.x" title="Provides an area for messages." class="local">\Drupal\views\Plugin\views\area\Messages</a> @group views

Namespace

Drupal\Tests\views\Unit\Plugin\area

Code

protected function setUp() : void {
    parent::setUp();
    $this->messagesHandler = new Messages([], 'result', []);
}

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