function SearchPageValidationTest::setUp

Same name in other branches
  1. 11.x 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 28

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',
        'plugin' => 'user_search',
    ]);
    $this->entity
        ->save();
}

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