ShortcutSevenIntegrationTest.php in Drupal 8
File
core/modules/shortcut/tests/src/Kernel/ShortcutSevenIntegrationTest.php
View source
<?php
namespace Drupal\Tests\shortcut\Kernel;
use Drupal\KernelTests\KernelTestBase;
class ShortcutSevenIntegrationTest extends KernelTestBase {
public static $modules = [
'system',
];
public function testInstallUninstall() {
\Drupal::service('theme_installer')
->install([
'seven',
]);
$this
->assertNull($this
->config('seven.settings')
->get('third_party_settings.shortcut'), 'There are no shortcut settings in seven.settings.');
\Drupal::service('module_installer')
->install([
'shortcut',
]);
$this
->assertTrue($this
->config('seven.settings')
->get('third_party_settings.shortcut.module_link'), 'The shortcut module_link setting is in seven.settings.');
\Drupal::service('module_installer')
->uninstall([
'shortcut',
]);
$this
->assertNull($this
->config('seven.settings')
->get('third_party_settings.shortcut'), 'There are no shortcut settings in seven.settings.');
}
}