TestingProfileInstallTest.php

Same filename and directory in other branches
  1. 11.x core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php
  2. 10 core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php
  3. 9 core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php
  4. 8.9.x core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php

Namespace

Drupal\FunctionalTests\Installer

File

core/tests/Drupal/FunctionalTests/Installer/TestingProfileInstallTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\FunctionalTests\Installer;

use Drupal\Tests\BrowserTestBase;
use PHPUnit\Framework\Attributes\Group;
use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;

/**
 * Tests installing the Testing profile with update notifications on.
 */
class TestingProfileInstallTest extends BrowserTestBase {
  
  /**
   * {@inheritdoc}
   */
  protected $profile = 'testing';
  
  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';
  
  /**
   * Ensure the Update Status module is installed.
   */
  public function testUpdateModuleInstall() : void {
    $this->assertTrue(\Drupal::moduleHandler()->moduleExists('update'));
  }
  
  /**
   * {@inheritdoc}
   */
  protected function installParameters() {
    $params = parent::installParameters();
    $params['forms']['install_configure_form']['enable_update_status_module'] = TRUE;
    return $params;
  }

}

Classes

Title Deprecated Summary
TestingProfileInstallTest Tests installing the Testing profile with update notifications on.

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