OliveroPostUpdateTest.php

Same filename in other branches
  1. 10 core/themes/olivero/tests/src/Functional/Update/OliveroPostUpdateTest.php

Namespace

Drupal\Tests\olivero\Functional\Update

File

core/themes/olivero/tests/src/Functional/Update/OliveroPostUpdateTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\olivero\Functional\Update;

use Drupal\FunctionalTests\Update\UpdatePathTestBase;

/**
 * Tests the update path for Olivero.
 *
 * @group Update
 * @group #slow
 */
class OliveroPostUpdateTest 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 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'));
    }

}

Classes

Title Deprecated Summary
OliveroPostUpdateTest Tests the update path for Olivero.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.