function MessagesTest::setUp

Same name 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 \Drupal\views\Plugin\views\area\Messages @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.