Search for Unit

  1. Search 7.x for Unit
  2. Search 9.5.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
SimpletestPhpunitRunCommandTest class core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php Tests simpletest_run_phpunit_tests() handles PHPunit fatals correctly.
SimpletestPhpunitRunCommandTest.php file core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php
SimpletestPhpunitRunCommandTest::$fixtureContainer property core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php A fixture container.
SimpletestPhpunitRunCommandTest::$root property core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php Path to the app root.
SimpletestPhpunitRunCommandTest::provideStatusCodes function core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php Data provider for testSimpletestPhpUnitRunCommand().
SimpletestPhpunitRunCommandTest::setUp function core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php
SimpletestPhpunitRunCommandTest::setUpBeforeClass function core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php
SimpletestPhpunitRunCommandTest::tearDown function core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php
SimpletestPhpunitRunCommandTest::testSimpletestPhpUnitRunCommand function core/modules/simpletest/tests/src/Unit/SimpletestPhpunitRunCommandTest.php Test the round trip for PHPUnit execution status codes.
SimpletestPhpunitRunCommandTestWillDie class core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php This test crashes PHP.
SimpletestPhpunitRunCommandTestWillDie::testWillDie function core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php Performs the status specified by SimpletestPhpunitRunCommandTestWillDie.
simpletest_phpunit_browsertest.php file core/modules/simpletest/tests/fixtures/simpletest_phpunit_browsertest.php
simpletest_phpunit_command function core/modules/simpletest/simpletest.module Returns the command to run PHPUnit.
simpletest_phpunit_configuration_filepath function core/modules/simpletest/simpletest.module Returns the path to core's phpunit.xml.dist configuration file.
simpletest_phpunit_find_testcases function core/modules/simpletest/simpletest.module Finds all test cases recursively from a test suite list.
simpletest_phpunit_run_command function core/modules/simpletest/simpletest.module Executes the PHPUnit command.
simpletest_phpunit_run_command_test.php file core/modules/simpletest/tests/fixtures/simpletest_phpunit_run_command_test.php
simpletest_phpunit_testcase_to_row function core/modules/simpletest/simpletest.module Converts a PHPUnit test case result to a {simpletest} result row.
simpletest_phpunit_xml_filepath function core/modules/simpletest/simpletest.module Returns the path to use for PHPUnit's --log-junit option.
simpletest_phpunit_xml_to_rows function core/modules/simpletest/simpletest.module Converts PHPUnit's JUnit XML output to an array.
simpletest_process_phpunit_results function core/modules/simpletest/simpletest.module Inserts the parsed PHPUnit results into {simpletest}.
simpletest_run_phpunit_tests function core/modules/simpletest/simpletest.module Executes PHPUnit tests and returns the results of the run.
simpletest_summarize_phpunit_result function core/modules/simpletest/simpletest.module Maps phpunit results to a data structure for batch messages and run-tests.sh.
StyleTableUnitTest class core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php Tests the table style plugin.
StyleTableUnitTest.php file core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php
StyleTableUnitTest::$testViews property core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php Views used by this test.
StyleTableUnitTest::prepareView function core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php Prepares a view executable by initializing everything which is needed.
StyleTableUnitTest::testTable function core/modules/views/tests/src/Kernel/Plugin/StyleTableUnitTest.php Tests the table style.
TestDatabase::processPhpUnitResults function core/lib/Drupal/Core/Test/TestDatabase.php Inserts the parsed PHPUnit results into {simpletest}.
TestDiscovery::getPhpunitTestSuite function core/lib/Drupal/Core/Test/TestDiscovery.php Determines the phpunit testsuite for a given classname, based on namespace.
TestDiscoveryTest::providerTestGetPhpunitTestSuite function core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php
TestDiscoveryTest::testGetPhpunitTestSuite function core/tests/Drupal/Tests/Core/Test/TestDiscoveryTest.php @covers ::getPhpunitTestSuite[[api-linebreak]]
@dataProvider providerTestGetPhpunitTestSuite
UiPhpUnitOutputTest class core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php Test PHPUnit output for the Simpletest UI.
UiPhpUnitOutputTest.php file core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php
UiPhpUnitOutputTest::$modules property core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php Modules to enable.
UiPhpUnitOutputTest::testOutput function core/modules/simpletest/src/Tests/UiPhpUnitOutputTest.php Tests that PHPUnit output in the Simpletest UI looks good.
UnitTestCase class core/tests/Drupal/Tests/UnitTestCase.php Provides a base class and helpers for Drupal unit tests.
UnitTestCase.php file core/tests/Drupal/Tests/UnitTestCase.php
UnitTestCase::$randomGenerator property core/tests/Drupal/Tests/UnitTestCase.php The random generator.
UnitTestCase::$root property core/tests/Drupal/Tests/UnitTestCase.php The app root.
UnitTestCase::assertArrayEquals function core/tests/Drupal/Tests/UnitTestCase.php Asserts if two arrays are equal by sorting them first.
UnitTestCase::getBlockMockWithMachineName function core/tests/Drupal/Tests/UnitTestCase.php Mocks a block with a block plugin.
UnitTestCase::getClassResolverStub function core/tests/Drupal/Tests/UnitTestCase.php Returns a stub class resolver.
UnitTestCase::getConfigFactoryStub function core/tests/Drupal/Tests/UnitTestCase.php Returns a stub config factory that behaves according to the passed array.
UnitTestCase::getConfigStorageStub function core/tests/Drupal/Tests/UnitTestCase.php Returns a stub config storage that returns the supplied configuration.
UnitTestCase::getContainerWithCacheTagsInvalidator function core/tests/Drupal/Tests/UnitTestCase.php Sets up a container with a cache tags invalidator.
UnitTestCase::getRandomGenerator function core/tests/Drupal/Tests/UnitTestCase.php Gets the random generator for the utility methods.
UnitTestCase::getStringTranslationStub function core/tests/Drupal/Tests/UnitTestCase.php Returns a stub translation manager that just returns the passed string.
UnitTestCase::randomMachineName function core/tests/Drupal/Tests/UnitTestCase.php Generates a unique random string containing letters and numbers.
UnitTestCase::setUp function core/tests/Drupal/Tests/UnitTestCase.php

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