You are here

public function PhpUnitAutoloaderTest::testPhpUnitTestClassesLoading in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Test/PhpUnitAutoloaderTest.php \Drupal\Tests\Core\Test\PhpUnitAutoloaderTest::testPhpUnitTestClassesLoading()
  2. 9 core/tests/Drupal/Tests/Core/Test/PhpUnitAutoloaderTest.php \Drupal\Tests\Core\Test\PhpUnitAutoloaderTest::testPhpUnitTestClassesLoading()

Tests loading of classes provided by test sub modules.

File

core/tests/Drupal/Tests/Core/Test/PhpUnitAutoloaderTest.php, line 17

Class

PhpUnitAutoloaderTest
Tests that classes are correctly loaded during PHPUnit initialization.

Namespace

Drupal\Tests\Core\Test

Code

public function testPhpUnitTestClassesLoading() {
  $this
    ->assertTrue(class_exists('\\Drupal\\phpunit_test\\PhpUnitTestDummyClass'), 'Class provided by test module was not autoloaded.');
}