You are here

public function TestSearchPage::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 276
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;
  }
}