You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
954 B
42 lines
954 B
<?php |
|
|
|
namespace Drupal\Tests\olivesdocs\Functional\Update; |
|
|
|
use Drupal\FunctionalTests\Update\UpdatePathTestBase; |
|
|
|
/** |
|
* Tests the update path for Olivesdocs. |
|
* |
|
* @group Update |
|
*/ |
|
class OlivesdocsPostUpdateTest extends UpdatePathTestBase { |
|
|
|
/** |
|
* {@inheritdoc} |
|
*/ |
|
protected $defaultTheme = 'stark'; |
|
|
|
/** |
|
* {@inheritdoc} |
|
*/ |
|
protected function setDatabaseDumpFiles() { |
|
$this->databaseDumpFiles = [ |
|
__DIR__ . '/../../../../../../modules/system/tests/fixtures/update/drupal-9.4.0.filled.standard.php.gz', |
|
]; |
|
} |
|
|
|
/** |
|
* Tests update hook setting base primary color. |
|
*/ |
|
public function testOlivesdocsPrimaryColorUpdate() { |
|
$config = $this->config('olivesdocs.settings'); |
|
$this->assertEmpty($config->get('base_primary_color')); |
|
|
|
// Run updates. |
|
$this->runUpdates(); |
|
|
|
$config = $this->config('olivesdocs.settings'); |
|
$this->assertSame('#1b9ae4', $config->get('base_primary_color')); |
|
} |
|
|
|
}
|
|
|