function OliveroPostUpdateTest::testOliveroPrimaryColorUpdate
Same name in other branches
- 10 core/themes/olivero/tests/src/Functional/Update/OliveroPostUpdateTest.php \Drupal\Tests\olivero\Functional\Update\OliveroPostUpdateTest::testOliveroPrimaryColorUpdate()
Tests update hook setting base primary color.
File
-
core/
themes/ olivero/ tests/ src/ Functional/ Update/ OliveroPostUpdateTest.php, line 34
Class
- OliveroPostUpdateTest
- Tests the update path for Olivero.
Namespace
Drupal\Tests\olivero\Functional\UpdateCode
public function testOliveroPrimaryColorUpdate() {
$config = $this->config('olivero.settings');
$this->assertEmpty($config->get('base_primary_color'));
// Run updates.
$this->runUpdates();
$config = $this->config('olivero.settings');
$this->assertSame('#1b9ae4', $config->get('base_primary_color'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.