Search for Unit

  1. Search 7.x for Unit
  2. Search 8.9.x for Unit
  3. Search 10.3.x for Unit
  4. Search 11.x for Unit
  5. Search main for Unit
  6. Other projects
Title Object type File name Summary
PhpUnitCliTest class core/tests/Drupal/Tests/Core/Test/PhpUnitCliTest.php @group TestSuites
@group Test
PhpUnitCliTest.php file core/tests/Drupal/Tests/Core/Test/PhpUnitCliTest.php
PhpUnitCliTest::testPhpUnitListTests function core/tests/Drupal/Tests/Core/Test/PhpUnitCliTest.php Ensure that the test suites are able to discover tests without incident.
PhpUnitCompatibilityTrait.php file core/tests/Drupal/Tests/PhpUnitCompatibilityTrait.php
PhpUnitTestDummyClass class core/modules/system/tests/modules/phpunit_test/src/PhpUnitTestDummyClass.php
PhpUnitTestDummyClass.php file core/modules/system/tests/modules/phpunit_test/src/PhpUnitTestDummyClass.php
PhpUnitTestRunner class core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Run PHPUnit-based tests.
PhpUnitTestRunner.php file core/lib/Drupal/Core/Test/PhpUnitTestRunner.php
PhpUnitTestRunner::$appRoot property core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Path to the application root.
PhpUnitTestRunner::$workingDirectory property core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Path to the working directory.
PhpUnitTestRunner::create function core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Instantiates a new instance of this class.
PhpUnitTestRunner::phpUnitCommand function core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Returns the command to run PHPUnit.
PhpUnitTestRunner::runCommand function core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Executes the PHPUnit command.
PhpUnitTestRunner::runTests function core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Executes PHPUnit tests and returns the results of the run.
PhpUnitTestRunner::summarizeResults function core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Tallies test results per test class.
PhpUnitTestRunner::xmlLogFilePath function core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Returns the path to use for PHPUnit's --log-junit option.
PhpUnitTestRunner::__construct function core/lib/Drupal/Core/Test/PhpUnitTestRunner.php Constructs a test runner.
PhpUnitTestRunnerTest class core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php @coversDefaultClass \Drupal\Core\Test\PhpUnitTestRunner[[api-linebreak]]
@group Test
PhpUnitTestRunnerTest.php file core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php
PhpUnitTestRunnerTest::providerTestSummarizeResults function core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php
PhpUnitTestRunnerTest::testPhpUnitCommand function core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php @covers ::phpUnitCommand[[api-linebreak]]
PhpUnitTestRunnerTest::testRunTestsError function core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php Tests an error in the test running phase.
PhpUnitTestRunnerTest::testSummarizeResults function core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php @dataProvider providerTestSummarizeResults
@covers ::summarizeResults[[api-linebreak]]
PhpUnitTestRunnerTest::testXmlLogFilePath function core/tests/Drupal/Tests/Core/Test/PhpUnitTestRunnerTest.php @covers ::xmlLogFilePath[[api-linebreak]]
PhpUnitWarnings trait core/tests/Drupal/Tests/Traits/PhpUnitWarnings.php Converts deprecation warnings added by PHPUnit to silenced deprecations.
PhpUnitWarnings.php file core/tests/Drupal/Tests/Traits/PhpUnitWarnings.php
PhpUnitWarnings::$deprecationWarnings property core/tests/Drupal/Tests/Traits/PhpUnitWarnings.php Deprecation warnings from PHPUnit to raise with @trigger_error().
PhpUnitWarnings::addWarning function core/tests/Drupal/Tests/Traits/PhpUnitWarnings.php Converts PHPUnit deprecation warnings to E_USER_DEPRECATED.
PhpUnitWarningsTest class core/tests/Drupal/Tests/PhpUnitWarningsTest.php @coversDefaultClass \Drupal\Tests\Traits\PhpUnitWarnings[[api-linebreak]]
@group legacy
PhpUnitWarningsTest.php file core/tests/Drupal/Tests/PhpUnitWarningsTest.php
PhpUnitWarningsTest::testAddWarning function core/tests/Drupal/Tests/PhpUnitWarningsTest.php Tests that selected PHPUnit warning is converted to deprecation.
PhpUnitWarningsTest::testAssertArraySubset function core/tests/Drupal/Tests/PhpUnitWarningsTest.php Tests assertArraySubset.
PhpUnitWarningsTest::testAssertAttribute function core/tests/Drupal/Tests/PhpUnitWarningsTest.php Tests assertion methods accessing class attributes.
PhpUnitWarningsTest::testAssertContains function core/tests/Drupal/Tests/PhpUnitWarningsTest.php Tests assertContains.
PhpUnitWarningsTest::testAssertEquals function core/tests/Drupal/Tests/PhpUnitWarningsTest.php Tests assertEquals.
PhpUnitWarningsTest::testAssertInternalType function core/tests/Drupal/Tests/PhpUnitWarningsTest.php Tests assertInternalType.
PhpUnitWarningsTest::testAssertNotContains function core/tests/Drupal/Tests/PhpUnitWarningsTest.php Tests assertNotContains.
PhpUnitWarningsTest::testExpectExceptionMessageRegExp function core/tests/Drupal/Tests/PhpUnitWarningsTest.php Tests expectExceptionMessageRegExp.
phpunit_test.info.yml file core/modules/system/tests/modules/phpunit_test/phpunit_test.info.yml core/modules/system/tests/modules/phpunit_test/phpunit_test.info.yml
PrivateMethodUnitTestTrait trait core/modules/ckeditor5/tests/src/Traits/PrivateMethodUnitTestTrait.php Provides methods to test protected/private methods in unit tests.
PrivateMethodUnitTestTrait.php file core/modules/ckeditor5/tests/src/Traits/PrivateMethodUnitTestTrait.php
PrivateMethodUnitTestTrait::getMethod function core/modules/ckeditor5/tests/src/Traits/PrivateMethodUnitTestTrait.php Gets a protected/private method to test.
RdfMappingConfigEntityUnitTest class core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php @coversDefaultClass \Drupal\rdf\Entity\RdfMapping[[api-linebreak]]
@group rdf
@group legacy
RdfMappingConfigEntityUnitTest.php file core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php
RdfMappingConfigEntityUnitTest::$entityType property core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php The entity type used for testing.
RdfMappingConfigEntityUnitTest::$entityTypeId property core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php The ID of the type of the entity under test.
RdfMappingConfigEntityUnitTest::$entityTypeManager property core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php The entity type manager used for testing.
RdfMappingConfigEntityUnitTest::$uuid property core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php The UUID generator used for testing.
RdfMappingConfigEntityUnitTest::setUp function core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php
RdfMappingConfigEntityUnitTest::testCalculateDependencies function core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php @covers ::calculateDependencies[[api-linebreak]]

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