You are here

class TestSearchPage in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php \Drupal\Tests\search\Unit\TestSearchPage
  2. 9 core/modules/search/tests/src/Unit/SearchPageRepositoryTest.php \Drupal\Tests\search\Unit\TestSearchPage

Hierarchy

Expanded class hierarchy of TestSearchPage

File

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

Namespace

Drupal\Tests\search\Unit
View source
class TestSearchPage extends SearchPage {
  public function __construct(array $values) {
    foreach ($values as $key => $value) {
      $this->{$key} = $value;
    }
  }
  public function label($langcode = NULL) {
    return $this->label;
  }

}

Members