AdminThemeUpdateTest.php in Drupal 8
File
core/modules/system/tests/src/Functional/Update/AdminThemeUpdateTest.php
View source
<?php
namespace Drupal\Tests\system\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class AdminThemeUpdateTest extends UpdatePathTestBase {
protected $defaultTheme = 'stark';
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.6.0.bare.testing.php.gz',
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.admin_theme_0.php',
];
}
public function testUpdateHookN() {
$this
->assertSame('0', $this
->config('system.theme')
->get('admin'));
$this
->runUpdates();
$this
->assertSame('', $this
->config('system.theme')
->get('admin'));
}
}