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
FieldConfigEntityUnitTest class core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php @coversDefaultClass \Drupal\field\Entity\FieldConfig[[api-linebreak]]
@group field
FieldConfigEntityUnitTest.php file core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
FieldConfigEntityUnitTest::$entityFieldManager property core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php The entity field manager used for testing.
FieldConfigEntityUnitTest::$entityType property core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php The entity type used for testing.
FieldConfigEntityUnitTest::$entityTypeId property core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php The ID of the type of the entity under test.
FieldConfigEntityUnitTest::$entityTypeManager property core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php The entity type 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 Tests 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.
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
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 Provides a base class for testing file uploads and hook invocations.
FileManagedUnitTestBase.php file core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php
FileManagedUnitTestBase::$modules property core/modules/file/tests/src/Kernel/FileManagedUnitTestBase.php Modules to install.
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 Asserts that the specified file hooks were called only once.
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 Creates and saves a file, asserting that it was saved.
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/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Tests any cache backend.
GenericCacheBackendUnitTestBase.php file core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php
GenericCacheBackendUnitTestBase::$cacheBackends property core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Array of objects implementing Drupal\Core\Cache\CacheBackendInterface.
GenericCacheBackendUnitTestBase::$defaultValue property core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Random value to use in tests.
GenericCacheBackendUnitTestBase::$testBin property core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Cache bin to use for testing.
GenericCacheBackendUnitTestBase::createCacheBackend function core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Creates a cache backend to test.
GenericCacheBackendUnitTestBase::getCacheBackend function core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Gets a backend to test; this will get a shared instance set in the object.
GenericCacheBackendUnitTestBase::getTestBin function core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Gets the testing bin.
GenericCacheBackendUnitTestBase::setUp function core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php
GenericCacheBackendUnitTestBase::setUpCacheBackend function core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php Allows specific implementation to change the environment before a test run.
GenericCacheBackendUnitTestBase::tearDown function core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php

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