function SearchPageValidationTest::setUp

Same name in other branches
  1. 10 core/modules/search/tests/src/Kernel/SearchPageValidationTest.php \Drupal\Tests\search\Kernel\SearchPageValidationTest::setUp()

Overrides ConfigEntityValidationTestBase::setUp

File

core/modules/search/tests/src/Kernel/SearchPageValidationTest.php, line 27

Class

SearchPageValidationTest
Tests validation of search_page entities.

Namespace

Drupal\Tests\search\Kernel

Code

protected function setUp() : void {
    parent::setUp();
    $this->entity = SearchPage::create([
        'id' => 'test',
        'label' => 'Test',
        'path' => 'test',
        'plugin' => 'user_search',
    ]);
    $this->entity
        ->save();
}

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