function PhpUnitAutoloaderTest::testPhpUnitTestClassesLoading

Same name in other branches
  1. 9 core/tests/Drupal/Tests/Core/Test/PhpUnitAutoloaderTest.php \Drupal\Tests\Core\Test\PhpUnitAutoloaderTest::testPhpUnitTestClassesLoading()
  2. 8.9.x core/tests/Drupal/Tests/Core/Test/PhpUnitAutoloaderTest.php \Drupal\Tests\Core\Test\PhpUnitAutoloaderTest::testPhpUnitTestClassesLoading()
  3. 11.x 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 19

Class

PhpUnitAutoloaderTest
Tests that classes are correctly loaded during PHPUnit initialization.

Namespace

Drupal\Tests\Core\Test

Code

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

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