Search for Unit

  1. Search 7.x for Unit
  2. Search 9.5.x for Unit
  3. Search 8.9.x for Unit
  4. Search 11.x for Unit
  5. Search main for Unit
  6. Other projects
Title Object type File name Summary
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.
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
TestRunTest::testProcessPhpUnitResults function core/tests/Drupal/KernelTests/Core/Test/TestRunTest.php @covers ::insertLogEntry[[api-linebreak]]
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::$root property core/tests/Drupal/Tests/UnitTestCase.php The app root.
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::getStringTranslationStub function core/tests/Drupal/Tests/UnitTestCase.php Returns a stub translation manager that just returns the passed string.
UnitTestCase::setUp function core/tests/Drupal/Tests/UnitTestCase.php
UnitTestCase::setUpBeforeClass function core/tests/Drupal/Tests/UnitTestCase.php
UnitTestCase::__get function core/tests/Drupal/Tests/UnitTestCase.php
UnitTestCaseTest class core/tests/Drupal/Tests/UnitTestCaseTest.php Tests for the UnitTestCase class.
UnitTestCaseTest.php file core/tests/Drupal/Tests/UnitTestCaseTest.php
UnitTestCaseTest::testGetRandomGeneratorPropertyDeprecation function core/tests/Drupal/Tests/UnitTestCaseTest.php Tests the deprecation of accessing the randomGenerator property directly.
UnitTestCaseTest::testVarDumpSameProcess function core/tests/Drupal/Tests/UnitTestCaseTest.php Tests the dump() function in a test run in the same process.
UnitTestCaseTest::testVarDumpSeparateProcess function core/tests/Drupal/Tests/UnitTestCaseTest.php Tests the dump() function in a test run in a separate process.
UnitTestSuite class core/tests/TestSuites/UnitTestSuite.php Discovers tests for the unit test suite.
UnitTestSuite.php file core/tests/TestSuites/UnitTestSuite.php
UnitTestSuite::suite function core/tests/TestSuites/UnitTestSuite.php Factory method which loads up a suite with all unit tests.
XssUnitTest class core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php Tests XSS filtering.
XssUnitTest.php file core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php
XssUnitTest::$modules property core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php Modules to install.
XssUnitTest::setUp function core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php
XssUnitTest::testBadProtocolStripping function core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php Checks that harmful protocols are stripped.
XssUnitTest::testT function core/tests/Drupal/KernelTests/Core/Common/XssUnitTest.php Tests t() functionality.

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