OliveroPostUpdateTest.php

Same filename and directory 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;
use PHPUnit\Framework\Attributes\CoversFunction;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests the update path for Olivero.
 */
class OliveroPostUpdateTest extends UpdatePathTestBase {
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * {@inheritdoc}
   */
  protected function setDatabaseDumpFiles() : void {
    $this->databaseDumpFiles = [
      __DIR__ . '/../../../../../../modules/system/tests/fixtures/update/drupal-11.3.0.bare.standard.php.gz',
    ];
  }
  
  /**
   * Tests update olivero third party settings without shortcut installed.
   */
  public function testOliveroThirdPartySettingsWithoutShortcut() : void {
    $config = $this->config('olivero.settings');
    $this->assertNotEmpty($config->get('third_party_settings'));
    // Run updates.
    $this->runUpdates();
    $config = $this->config('olivero.settings');
    $this->assertNull($config->get('third_party_settings'));
  }

}

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.