You are here

public function TestSearchPage::__construct in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php \Drupal\Tests\search\Unit\TestSearchPage::__construct()

Constructs an Entity object.

Parameters

array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.

string $entity_type: The type of the entity to create.

Overrides ConfigEntityBase::__construct

File

core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php, line 279
Contains \Drupal\Tests\search\Unit\SearchPageRepositoryTest.

Class

TestSearchPage

Namespace

Drupal\Tests\search\Unit

Code

public function __construct(array $values) {
  foreach ($values as $key => $value) {
    $this->{$key} = $value;
  }
}