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
RdfMappingConfigEntityUnitTest::testCalculateDependenciesWithEntityBundle function core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php @covers ::calculateDependencies[[api-linebreak]]
ResponsiveImageStyleConfigEntityUnitTest class core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php @coversDefaultClass \Drupal\responsive_image\Entity\ResponsiveImageStyle[[api-linebreak]]
@group block
ResponsiveImageStyleConfigEntityUnitTest.php file core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
ResponsiveImageStyleConfigEntityUnitTest::$breakpointManager property core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php The breakpoint manager used for testing.
ResponsiveImageStyleConfigEntityUnitTest::$entityType property core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php The entity type used for testing.
ResponsiveImageStyleConfigEntityUnitTest::$entityTypeManager property core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php The entity type manager used for testing.
ResponsiveImageStyleConfigEntityUnitTest::setUp function core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php
ResponsiveImageStyleConfigEntityUnitTest::testCalculateDependencies function core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php @covers ::calculateDependencies[[api-linebreak]]
ResponsiveImageStyleConfigEntityUnitTest::testGetImageStyleMapping function core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php @covers ::addImageStyleMapping[[api-linebreak]]
@covers ::getImageStyleMapping[[api-linebreak]]
ResponsiveImageStyleConfigEntityUnitTest::testGetImageStyleMappings function core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php @covers ::addImageStyleMapping[[api-linebreak]]
@covers ::getImageStyleMappings[[api-linebreak]]
ResponsiveImageStyleConfigEntityUnitTest::testGetKeyedImageStyleMappings function core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php @covers ::addImageStyleMapping[[api-linebreak]]
@covers ::getKeyedImageStyleMappings[[api-linebreak]]
ResponsiveImageStyleConfigEntityUnitTest::testHasImageStyleMappings function core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php @covers ::addImageStyleMapping[[api-linebreak]]
@covers ::hasImageStyleMappings[[api-linebreak]]
ResponsiveImageStyleConfigEntityUnitTest::testRemoveImageStyleMappings function core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php @covers ::addImageStyleMapping[[api-linebreak]]
@covers ::removeImageStyleMappings[[api-linebreak]]
ResponsiveImageStyleConfigEntityUnitTest::testSetBreakpointGroup function core/modules/responsive_image/tests/src/Unit/ResponsiveImageStyleConfigEntityUnitTest.php @covers ::setBreakpointGroup[[api-linebreak]]
@covers ::getBreakpointGroup[[api-linebreak]]
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
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::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
UnitTestCase::setUpBeforeClass 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::testAssertArrayEquals function core/tests/Drupal/Tests/UnitTestCaseTest.php Tests deprecation of the ::assertArrayEquals method.
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 enable.
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.

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