function MessagesTest::setUp

Same name in other branches
  1. 8.9.x core/modules/views/tests/src/Unit/Plugin/area/MessagesTest.php \Drupal\Tests\views\Unit\Plugin\area\MessagesTest::setUp()
  2. 10 core/modules/views/tests/src/Unit/Plugin/area/MessagesTest.php \Drupal\Tests\views\Unit\Plugin\area\MessagesTest::setUp()
  3. 11.x 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 31

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.