public function ConfigOverrideIntegrationTest::setUp in Search API 8
Overrides SearchApiBrowserTestBase::setUp
File
- tests/
src/ Functional/ ConfigOverrideIntegrationTest.php, line 20
Class
- ConfigOverrideIntegrationTest
- Contains integration tests for config entities with overrides.
Namespace
Drupal\Tests\search_api\FunctionalCode
public function setUp() {
parent::setUp();
// Set up overrides.
$settings['config']['search_api.server.test_server']['name'] = (object) [
'value' => 'Overridden server',
'required' => TRUE,
];
$settings['config']['search_api.server.test_server']['status'] = (object) [
'value' => TRUE,
'required' => TRUE,
];
$settings['config']['search_api.server.test_server']['backend_config']['test'] = (object) [
'value' => 'foobar',
'required' => TRUE,
];
$settings['config']['search_api.index.test_index']['name'] = (object) [
'value' => 'Overridden index',
'required' => TRUE,
];
$this
->writeSettings($settings);
$permissions = [
'administer search_api',
'access administration pages',
'administer nodes',
'bypass node access',
'administer content types',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
}