Issue #3268443 by danflanagan8, ravi.shankar, dww, longwave: Configuration Manager (config) tests should not rely on Classy
parent
fe3d2efd97
commit
58b15e1960
|
@ -2,7 +2,7 @@ name: 'Test theme for configuration clash detection'
|
|||
type: theme
|
||||
description: 'Test theme for configuration clash detection'
|
||||
version: VERSION
|
||||
base theme: classy
|
||||
base theme: stark
|
||||
regions:
|
||||
content: Content
|
||||
left: Left
|
||||
|
|
|
@ -4,9 +4,9 @@ dependencies:
|
|||
module:
|
||||
- block_test
|
||||
theme:
|
||||
- classy
|
||||
- stark
|
||||
id: config_override_test
|
||||
theme: classy
|
||||
theme: stark
|
||||
region: content
|
||||
weight: 0
|
||||
plugin: test_cache
|
||||
|
|
|
@ -4,9 +4,9 @@ dependencies:
|
|||
module:
|
||||
- block_content
|
||||
theme:
|
||||
- classy
|
||||
- stark
|
||||
id: call_to_action
|
||||
theme: classy
|
||||
theme: stark
|
||||
region: content
|
||||
weight: null
|
||||
provider: null
|
||||
|
|
|
@ -25,7 +25,7 @@ class CacheabilityMetadataConfigOverrideIntegrationTest extends BrowserTestBase
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $defaultTheme = 'classy';
|
||||
protected $defaultTheme = 'stark';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
|
|
@ -26,7 +26,7 @@ class ConfigEntityListTest extends BrowserTestBase {
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $defaultTheme = 'classy';
|
||||
protected $defaultTheme = 'stark';
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
|
@ -179,14 +179,14 @@ class ConfigEntityListTest extends BrowserTestBase {
|
|||
$this->assertSession()->elementTextEquals('xpath', '//div[@class="layout-content"]//table/thead/tr/th[3]', 'Operations');
|
||||
|
||||
// Check the number of table row cells.
|
||||
$this->assertSession()->elementsCount('xpath', '//div[@class="layout-content"]//table/tbody/tr[@class="odd"]/td', 3);
|
||||
$this->assertSession()->elementsCount('xpath', '//div[@class="layout-content"]//table/tbody/tr[1]/td', 3);
|
||||
|
||||
// Check the contents of each row cell. The first cell contains the label,
|
||||
// the second contains the machine name, and the third contains the
|
||||
// operations list.
|
||||
$this->assertSession()->elementTextEquals('xpath', '//div[@class="layout-content"]//table/tbody/tr[@class="odd"]/td[1]', 'Default');
|
||||
$this->assertSession()->elementTextEquals('xpath', '//div[@class="layout-content"]//table/tbody/tr[@class="odd"]/td[2]', 'dotted.default');
|
||||
$this->assertSession()->elementExists('xpath', '//div[@class="layout-content"]//table/tbody/tr[@class="odd"]/td[3]//ul');
|
||||
$this->assertSession()->elementTextEquals('xpath', '//div[@class="layout-content"]//table/tbody/tr[1]/td[1]', 'Default');
|
||||
$this->assertSession()->elementTextEquals('xpath', '//div[@class="layout-content"]//table/tbody/tr[1]/td[2]', 'dotted.default');
|
||||
$this->assertSession()->elementExists('xpath', '//div[@class="layout-content"]//table/tbody/tr[1]/td[3]//ul');
|
||||
|
||||
// Add a new entity using the operations link.
|
||||
$this->assertSession()->linkExists('Add test configuration');
|
||||
|
|
|
@ -68,12 +68,11 @@ class ConfigImportInstallProfileTest extends BrowserTestBase {
|
|||
$core['module']['testing_config_import'] = 0;
|
||||
unset($core['module']['syslog']);
|
||||
unset($core['theme']['stark']);
|
||||
$core['theme']['stable'] = 0;
|
||||
$core['theme']['classy'] = 0;
|
||||
$core['theme']['test_theme_theme'] = 0;
|
||||
$sync->write('core.extension', $core);
|
||||
$sync->deleteAll('syslog.');
|
||||
$theme = $sync->read('system.theme');
|
||||
$theme['default'] = 'classy';
|
||||
$theme['default'] = 'test_theme_theme';
|
||||
$sync->write('system.theme', $theme);
|
||||
$this->drupalGet('admin/config/development/configuration');
|
||||
$this->submitForm([], 'Import all');
|
||||
|
@ -81,7 +80,7 @@ class ConfigImportInstallProfileTest extends BrowserTestBase {
|
|||
$this->rebuildContainer();
|
||||
$this->assertFalse(\Drupal::moduleHandler()->moduleExists('syslog'), 'The syslog module has been uninstalled.');
|
||||
$this->assertFalse(\Drupal::service('theme_handler')->themeExists('stark'), 'The stark theme has been uninstalled.');
|
||||
$this->assertTrue(\Drupal::service('theme_handler')->themeExists('classy'), 'The classy theme has been installed.');
|
||||
$this->assertTrue(\Drupal::service('theme_handler')->themeExists('test_theme_theme'), 'The test_theme_theme theme has been installed.');
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ class ConfigImportUITest extends BrowserTestBase {
|
|||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $defaultTheme = 'classy';
|
||||
protected $defaultTheme = 'stark';
|
||||
|
||||
/**
|
||||
* A user with the 'synchronize configuration' permission.
|
||||
|
|
Loading…
Reference in New Issue