class TestSearchPage

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

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;
  }

}

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