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
FieldConfigEntityUnitTest::$entityTypeManager property core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php The entity manager used for testing.
FieldConfigEntityUnitTest::$fieldStorage property core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php The mock field storage.
FieldConfigEntityUnitTest::$fieldTypePluginManager property core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php The mock field type plugin manager;
FieldConfigEntityUnitTest::$uuid property core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php The UUID generator used for testing.
FieldConfigEntityUnitTest::setUp function core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
FieldConfigEntityUnitTest::testCalculateDependencies function core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php @covers ::calculateDependencies[[api-linebreak]]
FieldConfigEntityUnitTest::testCalculateDependenciesIncorrectBundle function core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php Test that invalid bundles are handled.
FieldConfigEntityUnitTest::testGetType function core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php @covers ::getType[[api-linebreak]]
FieldConfigEntityUnitTest::testOnDependencyRemoval function core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php @covers ::onDependencyRemoval[[api-linebreak]]
FieldConfigEntityUnitTest::testToArray function core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php @covers ::toArray[[api-linebreak]]
FieldInstanceSettings::convertSizeUnit function core/modules/field/src/Plugin/migrate/process/d6/FieldInstanceSettings.php Convert file size strings into their D8 format.
FieldItemNormalizerDenormalizeExceptionsUnitTest class core/modules/hal/tests/src/Unit/FieldItemNormalizerDenormalizeExceptionsUnitTest.php @coversDefaultClass \Drupal\hal\Normalizer\FieldItemNormalizer[[api-linebreak]]
@group hal
FieldItemNormalizerDenormalizeExceptionsUnitTest.php file core/modules/hal/tests/src/Unit/FieldItemNormalizerDenormalizeExceptionsUnitTest.php
FieldItemNormalizerDenormalizeExceptionsUnitTest::testFieldItemNormalizerDenormalizeExceptions function core/modules/hal/tests/src/Unit/FieldItemNormalizerDenormalizeExceptionsUnitTest.php Tests that the FieldItemNormalizer::denormalize() throws proper exceptions.
FieldNormalizerDenormalizeExceptionsUnitTest class core/modules/hal/tests/src/Unit/FieldNormalizerDenormalizeExceptionsUnitTest.php @coversDefaultClass \Drupal\hal\Normalizer\FieldNormalizer[[api-linebreak]]
@group hal
FieldNormalizerDenormalizeExceptionsUnitTest.php file core/modules/hal/tests/src/Unit/FieldNormalizerDenormalizeExceptionsUnitTest.php
FieldNormalizerDenormalizeExceptionsUnitTest::testFieldNormalizerDenormalizeExceptions function core/modules/hal/tests/src/Unit/FieldNormalizerDenormalizeExceptionsUnitTest.php Tests that the FieldNormalizer::denormalize() throws proper exceptions.
FieldStorageConfigEntityUnitTest class core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php @coversDefaultClass \Drupal\field\Entity\FieldStorageConfig[[api-linebreak]]
FieldStorageConfigEntityUnitTest.php file core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php Contains \Drupal\Tests\field\Unit\FieldStorageConfigEntityUnitTest.
FieldStorageConfigEntityUnitTest::$entityTypeId property core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php The ID of the type of the entity under test.
FieldStorageConfigEntityUnitTest::$entityTypeManager property core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php The entity type manager used for testing.
FieldStorageConfigEntityUnitTest::$fieldTypeManager property core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php The field type manager.
FieldStorageConfigEntityUnitTest::$uuid property core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php The UUID generator used for testing.
FieldStorageConfigEntityUnitTest::providerInvalidEnforcedCardinality function core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php Data provider for ::testInvalidEnforcedCardinality()
FieldStorageConfigEntityUnitTest::setUp function core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php
FieldStorageConfigEntityUnitTest::testCalculateDependencies function core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php @covers ::calculateDependencies[[api-linebreak]]
FieldStorageConfigEntityUnitTest::testEnforcedCardinality function core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php Tests enforced cardinality.
FieldStorageConfigEntityUnitTest::testInvalidEnforcedCardinality function core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php Tests invalid enforced cardinality.
FieldStorageConfigEntityUnitTest::testStoredCardinality function core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php Tests stored cardinality.
FileManagedUnitTestBase class core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Base class for file unit tests that use the file_test module to test uploads and
hooks.
FileManagedUnitTestBase.php file core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
FileManagedUnitTestBase::$modules property core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Modules to enable.
FileManagedUnitTestBase::assertDifferentFile function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that two files are not the same by comparing the fid and filepath.
FileManagedUnitTestBase::assertFileHookCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Assert that a hook_file_* hook was called a certain number of times.
FileManagedUnitTestBase::assertFileHooksCalled function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Assert that all of the specified hook_file_* hooks were called once, other
values result in failure.
FileManagedUnitTestBase::assertFileUnchanged function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that two files have the same values (except timestamp).
FileManagedUnitTestBase::assertSameFile function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Asserts that two files are the same by comparing the fid and filepath.
FileManagedUnitTestBase::createFile function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Create a file and save it to the files table and assert that it occurs
correctly.
FileManagedUnitTestBase::createUri function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Creates a file and returns its URI.
FileManagedUnitTestBase::setUp function core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
GenericCacheBackendUnitTestBase class core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php Tests any cache backend.
GenericCacheBackendUnitTestBase class core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Tests any cache backend.
GenericCacheBackendUnitTestBase.php file core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php
GenericCacheBackendUnitTestBase.php file core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php
GenericCacheBackendUnitTestBase::$cachebackends property core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php Array of objects implementing Drupal\Core\Cache\CacheBackendInterface.
GenericCacheBackendUnitTestBase::$cachebackends property core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Array of objects implementing Drupal\Core\Cache\CacheBackendInterface.
GenericCacheBackendUnitTestBase::$defaultValue property core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php Random value to use in tests.
GenericCacheBackendUnitTestBase::$defaultValue property core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Random value to use in tests.
GenericCacheBackendUnitTestBase::$testBin property core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php Cache bin to use for testing.
GenericCacheBackendUnitTestBase::$testBin property core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Cache bin to use for testing.

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