genoring_theme-1.0.0-alpha1/tests/src/Functional/Update/GenoringThemePostUpdateTest.php

tests/src/Functional/Update/GenoringThemePostUpdateTest.php
<?php

declare(strict_types=1);

namespace Drupal\Tests\olivero\Functional\Update;

use Drupal\FunctionalTests\Update\UpdatePathTestBase;

/**
 * Tests the update path for GenoRing.
 *
 * @group Update
 * @group #slow
 */
class GenoRingPostUpdateTest 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 testGenoRingPrimaryColorUpdate(): void {
    $config = $this->config('olivero.settings');
    $this->assertEmpty($config->get('base_primary_color'));

    // Run updates.
    $this->runUpdates();

    $config = $this->config('olivero.settings');
    $this->assertSame('#607080', $config->get('base_primary_color'));
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc