CoreThemesAutoloadedForTests.php

Same filename and directory in other branches
  1. 9 core/tests/Drupal/Tests/Core/Theme/CoreThemesAutoloadedForTests.php
  2. 11.x core/tests/Drupal/Tests/Core/Theme/CoreThemesAutoloadedForTests.php

Namespace

Drupal\Tests\Core\Theme

File

core/tests/Drupal/Tests/Core/Theme/CoreThemesAutoloadedForTests.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\Core\Theme;

use Drupal\Tests\UnitTestCase;
use Drupal\claro\ClaroPreRender;

/**
 * Confirms that core/themes is autoloaded for tests.
 *
 * @group Theme
 */
class CoreThemesAutoloadedForTests extends UnitTestCase {
  
  /**
   * Confirms that core/themes is autoloaded for tests.
   */
  public function testCoreThemesAutoloadedForTests() : void {
    $this->assertTrue(class_exists(ClaroPreRender::class), 'core/themes (ClaroPreRender) is registered with the tests autoloader');
  }

}

Classes

Title Deprecated Summary
CoreThemesAutoloadedForTests Confirms that core/themes is autoloaded for tests.

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