You are here

145 calls to UnitTestCase::randomMachineName() in Drupal 9

AliasManagerTest::testGetAliasByPathCachedMatch in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getAliasByPath method for a path that is preloaded.
AliasManagerTest::testGetAliasByPathCachedMissLanguage in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getAliasByPath cache when a different language is requested.
AliasManagerTest::testGetAliasByPathCachedMissNoAlias in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getAliasByPath cache with a preloaded path without alias.
AliasManagerTest::testGetAliasByPathMatch in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getAliasByPath method for a path that has a matching alias.
AliasManagerTest::testGetAliasByPathNoMatch in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getAliasByPath method for a path that has no matching alias.
AliasManagerTest::testGetAliasByPathUncachedMissNoAlias in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getAliasByPath cache with an unpreloaded path without alias.
AliasManagerTest::testGetAliasByPathUncachedMissWithAlias in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getAliasByPath cache with an unpreloaded path with alias.
AliasManagerTest::testGetAliasByPathWhitelist in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getAliasByPath method for a path that is not in the whitelist.
AliasManagerTest::testGetPathByAliasLangcode in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getPathByAlias method when a langcode is passed explicitly.
AliasManagerTest::testGetPathByAliasMatch in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getPathByAlias method for an alias that have a matching path.
AliasManagerTest::testGetPathByAliasNoMatch in core/modules/path_alias/tests/src/Unit/AliasManagerTest.php
Tests the getPathByAlias method for an alias that have no matching path.
AttributeTest::testPrint in core/tests/Drupal/Tests/Core/Template/AttributeTest.php
Tests printing of an attribute.
AuthenticationCollectorTest::testAuthenticationCollector in core/tests/Drupal/Tests/Core/Authentication/AuthenticationCollectorTest.php
Tests adding, getting, and order of priorities.
BaseFieldDefinitionTest::setUp in core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
BaseFieldDefinitionTest::testFieldDefaultValue in core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
Tests field default value.
BaseFieldDefinitionTest::testFieldDescription in core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
Tests field description methods.
BaseFieldDefinitionTest::testFieldInitialValue in core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
Tests field initial value.
BaseFieldDefinitionTest::testFieldLabel in core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
Tests field label methods.
BaseFieldDefinitionTest::testFieldName in core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
Tests field name methods.
BaseFieldDefinitionTest::testFieldProvider in core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
Tests provider.
BaseFieldDefinitionTest::testFieldSettings in core/tests/Drupal/Tests/Core/Entity/BaseFieldDefinitionTest.php
Tests field settings methods.
BigPipeResponseAttachmentsProcessorTest::attachmentsProvider in core/modules/big_pipe/tests/src/Unit/Render/BigPipeResponseAttachmentsProcessorTest.php
BlockConfigEntityUnitTest::setUp in core/modules/block/tests/src/Unit/BlockConfigEntityUnitTest.php
BlockConfigEntityUnitTest::testCalculateDependencies in core/modules/block/tests/src/Unit/BlockConfigEntityUnitTest.php
@covers ::calculateDependencies
BlockPluginHasSettingsTrayFormAccessCheckTest::providerTestAccess in core/modules/settings_tray/tests/src/Unit/Access/BlockPluginHasSettingsTrayFormAccessCheckTest.php
Provides test data for ::testAccess().
BlockRepositoryTest::setUp in core/modules/block/tests/src/Unit/BlockRepositoryTest.php
CachedStorageTest::testListAllStaticCache in core/tests/Drupal/Tests/Core/Config/CachedStorageTest.php
Tests listAll static cache.
ConfigEntityBaseUnitTest::providerCalculateDependenciesWithPluginCollections in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
Data provider for testCalculateDependenciesWithPluginCollections.
ConfigEntityBaseUnitTest::setUp in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
ConfigEntityBaseUnitTest::testCalculateDependenciesWithPluginCollections in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
@covers ::getDependencies @covers ::calculateDependencies
ConfigEntityBaseUnitTest::testGet in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
@covers ::set @covers ::get
ConfigEntityBaseUnitTest::testGetOriginalId in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityBaseUnitTest.php
@covers ::setOriginalId @covers ::getOriginalId
ConfigEntityNormalizerTest::testDenormalize in core/modules/serialization/tests/src/Unit/Normalizer/ConfigEntityNormalizerTest.php
@covers ::denormalize
ConfigEntityNormalizerTest::testNormalize in core/modules/serialization/tests/src/Unit/Normalizer/ConfigEntityNormalizerTest.php
Tests the normalize() method.
ConfigEntityTypeTest::testConfigPrefixLengthExceeds in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
Tests that we get an exception when the length of the config prefix that is returned by getConfigPrefix() exceeds the maximum defined prefix length.
ConfigEntityTypeTest::testConfigPrefixLengthValid in core/tests/Drupal/Tests/Core/Config/Entity/ConfigEntityTypeTest.php
Tests that a valid config prefix returned by getConfigPrefix() does not throw an exception and is formatted as expected.
ConfigFactoryTest::testRename in core/tests/Drupal/Tests/Core/Config/ConfigFactoryTest.php
@covers ::rename
ContentEntityBaseUnitTest::setUp in core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php
ContentEntityBaseUnitTest::testAccess in core/tests/Drupal/Tests/Core/Entity/ContentEntityBaseUnitTest.php
@covers ::access
ContentLanguageSettingsUnitTest::providerDefaultLangcode in core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php
ContentLanguageSettingsUnitTest::providerIsDefaultConfiguration in core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php
ContentLanguageSettingsUnitTest::providerLoadByEntityTypeBundle in core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php
ContentLanguageSettingsUnitTest::setUp in core/modules/language/tests/src/Unit/ContentLanguageSettingsUnitTest.php
CronTest::setUp in core/tests/Drupal/Tests/Core/CronTest.php
CsrfTokenGeneratorTest::setUp in core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php
CsrfTokenGeneratorTest::testGet in core/tests/Drupal/Tests/Core/Access/CsrfTokenGeneratorTest.php
Tests CsrfTokenGenerator::get().
DateTimeIso8601NormalizerTest::testNormalize in core/modules/serialization/tests/src/Unit/Normalizer/DateTimeIso8601NormalizerTest.php
@covers ::normalize @dataProvider providerTestNormalize
DateTimeNormalizerTest::testNormalize in core/modules/serialization/tests/src/Unit/Normalizer/DateTimeNormalizerTest.php
@covers ::normalize
DefaultLazyPluginCollectionTest::testHas in core/tests/Drupal/Tests/Core/Plugin/DefaultLazyPluginCollectionTest.php
@covers ::has
DefaultPluginManagerTest::testCacheClearWithTags in core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php
Tests the plugin manager cache clear with tags.
DefaultPluginManagerTest::testDefaultPluginManagerNoCache in core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php
Tests the plugin manager with caching disabled.
DefaultPluginManagerTest::testDefaultPluginManagerWithAlter in core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php
Tests the plugin manager with no cache and altering.
DefaultPluginManagerTest::testDefaultPluginManagerWithEmptyCache in core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php
Tests the plugin manager with caching and altering.
DefaultPluginManagerTest::testDefaultPluginManagerWithFilledCache in core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php
Tests the plugin manager with caching and altering.
DisplayVariantTest::testSubmitConfigurationForm in core/tests/Drupal/Tests/Core/Display/DisplayVariantTest.php
Tests the submitConfigurationForm() method.
EditorConfigEntityUnitTest::setUp in core/modules/editor/tests/src/Unit/EditorConfigEntityUnitTest.php
EntityAdapterUnitTest::setUp in core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php
EntityAdapterUnitTest::testSetContext in core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php
@covers ::setContext
EntityDisplayModeBaseUnitTest::setUp in core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayModeBaseUnitTest.php
EntityDisplayModeBaseUnitTest::testCalculateDependencies in core/tests/Drupal/Tests/Core/Config/Entity/EntityDisplayModeBaseUnitTest.php
@covers ::calculateDependencies
EntityFieldManagerTest::testGetExtraFields in core/tests/Drupal/Tests/Core/Entity/EntityFieldManagerTest.php
@covers ::getExtraFields
EntityListBuilderTest::testGetOperations in core/tests/Drupal/Tests/Core/Entity/EntityListBuilderTest.php
@covers ::getOperations
EntityOperationsUnitTest::setUp in core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php
@covers ::__construct
EntityOperationsUnitTest::testRenderWithDestination in core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php
@covers ::render
EntityOperationsUnitTest::testRenderWithoutDestination in core/modules/views/tests/src/Unit/Plugin/views/field/EntityOperationsUnitTest.php
@covers ::render
EntityTypeTest::testGetGroupLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getGroupLabel
EntityTypeTest::testGetLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getLabel
EntityTypeTest::testgetOriginalClassChanged in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::setClass @covers ::getOriginalClass
EntityTypeTest::testgetOriginalClassUnchanged in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getOriginalClass
EntityTypeTest::testId in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::id
EntityTypeTest::testIdExceedsMaxLength in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::__construct
EntityTypeTest::testSetLinkTemplateWithInvalidPath in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::setLinkTemplate
EntityUnitTest::setUp in core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php
EntityUnitTest::testAccess in core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php
@covers ::access
EntityUnitTest::testDelete in core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php
@covers ::delete
EntityUnitTest::testLabel in core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php
@covers ::label
ExtensionInstallStorageTest::testCreateCollection in core/tests/Drupal/Tests/Core/Config/ExtensionInstallStorageTest.php
@covers ::createCollection
ExtensionListTest::testGetNameWithNonExistingExtension in core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php
@covers ::getName
ExtensionListTest::testGetWithNonExistingExtension in core/tests/Drupal/Tests/Core/Extension/ExtensionListTest.php
@covers ::get
FieldConfigEntityUnitTest::setUp in core/modules/field/tests/src/Unit/FieldConfigEntityUnitTest.php
FieldDefinitionTest::setUp in core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
FieldDefinitionTest::testBundle in core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
@covers ::setTargetBundle @covers ::getTargetBundle @dataProvider factoryTypeProvider
FieldDefinitionTest::testFieldDefaultValue in core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
@covers ::getDefaultValue @covers ::setDefaultValue @dataProvider factoryTypeProvider
FieldDefinitionTest::testFieldDescription in core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
@covers ::getDescription @dataProvider factoryTypeProvider
FieldDefinitionTest::testFieldLabel in core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
@covers ::getLabel @dataProvider factoryTypeProvider
FieldDefinitionTest::testFieldSettings in core/tests/Drupal/Tests/Core/Entity/FieldDefinitionTest.php
@covers ::getSetting @covers ::setSetting @covers ::getSettings @dataProvider factoryTypeProvider
FieldStorageConfigEntityUnitTest::testCalculateDependencies in core/modules/field/tests/src/Unit/FieldStorageConfigEntityUnitTest.php
@covers ::calculateDependencies
FieldUninstallValidatorTest::testValidateDeleted in core/modules/field/tests/src/Unit/FieldUninstallValidatorTest.php
@covers ::validate
FieldUninstallValidatorTest::testValidateNoDeleted in core/modules/field/tests/src/Unit/FieldUninstallValidatorTest.php
@covers ::validate
FieldUninstallValidatorTest::testValidateNoStorages in core/modules/field/tests/src/Unit/FieldUninstallValidatorTest.php
@covers ::validate
FilterUninstallValidatorTest::testValidateNoFormats in core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
@covers ::validate
FilterUninstallValidatorTest::testValidateNoMatchingFormats in core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
@covers ::validate
FilterUninstallValidatorTest::testValidateNoPlugins in core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
@covers ::validate
FormBuilderTest::testFormCacheDeletionCached in core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php
Tests that a cached form is deleted after submit.
FormBuilderTest::testFormCacheDeletionUncached in core/tests/Drupal/Tests/Core/Form/FormBuilderTest.php
Tests that an uncached form does not trigger cache set or delete.
FormStateValuesTraitTest::testSetValueForElement in core/tests/Drupal/Tests/Core/Form/FormStateValuesTraitTest.php
Tests that setting the value for an element adds to the values.
FormValidatorTest::providerTestPerformRequiredValidation in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
ImageStyleTest::setUp in core/modules/image/tests/src/Unit/ImageStyleTest.php
ImageStyleTest::testBuildUri in core/modules/image/tests/src/Unit/ImageStyleTest.php
@covers ::buildUri
ImageStyleTest::testGetDerivativeExtension in core/modules/image/tests/src/Unit/ImageStyleTest.php
@covers ::getDerivativeExtension
ImageStyleTest::testGetPathToken in core/modules/image/tests/src/Unit/ImageStyleTest.php
@covers ::getPathToken
InfoParserUnitTest::testLifecycleLink in core/tests/Drupal/Tests/Core/Extension/InfoParserUnitTest.php
Tests an info file's lifecycle_link values.
LanguageTest::setUp in core/modules/ckeditor/tests/src/Unit/Plugin/CKEditorPlugin/LanguageTest.php
LanguageUnitTest::testConstruct in core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php
@covers ::__construct
LanguageUnitTest::testGetDirection in core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php
@covers ::getDirection
LanguageUnitTest::testGetLangcode in core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php
@covers ::getId
LanguageUnitTest::testGetName in core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php
@covers ::getName
LanguageUnitTest::testIsDefault in core/tests/Drupal/Tests/Core/Language/LanguageUnitTest.php
@covers ::isDefault
LoggerChannelTest::testLog in core/tests/Drupal/Tests/Core/Logger/LoggerChannelTest.php
Tests LoggerChannel::log().
LoggerChannelTest::testLogRecursionProtection in core/tests/Drupal/Tests/Core/Logger/LoggerChannelTest.php
Tests LoggerChannel::log() recursion protection.
LoggerChannelTest::testSortLoggers in core/tests/Drupal/Tests/Core/Logger/LoggerChannelTest.php
Tests LoggerChannel::addLoggers().
MailFormatHelperTest::testWrapMail in core/tests/Drupal/Tests/Core/Mail/MailFormatHelperTest.php
@covers ::wrapMail
MakeUniqueEntityFieldTest::testMakeUniqueEntityField in core/modules/migrate/tests/src/Unit/process/MakeUniqueEntityFieldTest.php
Tests making an entity field value unique.
ManyPlaceholderTest::testManyNoJsPlaceHolders in core/modules/big_pipe/tests/src/Unit/Render/ManyPlaceholderTest.php
@covers \Drupal\big_pipe\Render\BigPipe::sendNoJsPlaceholders
MenuActiveTrailTest::provider in core/tests/Drupal/Tests/Core/Menu/MenuActiveTrailTest.php
Provides test data for all test methods.
ModuleRequiredByThemesUninstallValidatorTest::testValidateNoThemeDependency in core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php
@covers ::validate
NullBackendTest::testNullBackend in core/tests/Drupal/Tests/Core/Cache/NullBackendTest.php
Tests that the NullBackend does not actually store variables.
PasswordHashingTest::setUp in core/tests/Drupal/Tests/Core/Password/PasswordHashingTest.php
PluralTranslationTest::providerTestGet in core/tests/Drupal/Tests/Core/Annotation/PluralTranslationTest.php
Provides data to self::testGet().
PrivateKeyTest::testSet in core/tests/Drupal/Tests/Core/PrivateKeyTest.php
Tests PrivateKey::setPrivateKey().
RdfMappingConfigEntityUnitTest::setUp in core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php
RdfMappingConfigEntityUnitTest::testCalculateDependencies in core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php
@covers ::calculateDependencies
RdfMappingConfigEntityUnitTest::testCalculateDependenciesWithEntityBundle in core/modules/rdf/tests/src/Unit/RdfMappingConfigEntityUnitTest.php
@covers ::calculateDependencies
ReadOnlyStorageTest::testCollections in core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php
@covers ::getAllCollectionNames @covers ::getCollectionName @covers ::createCollection
ReadOnlyStorageTest::writeMethodsProvider in core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php
Provide the methods that throw an exception.
RendererBubblingTest::testContextBubblingCustomCacheBin in core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
Tests cache context bubbling with a custom cache bin.
RendererTest::testRenderSorting in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render @covers ::doRender
RendererTest::testRenderSortingWithSetHashSorted in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render @covers ::doRender
RendererTest::testRenderWithThemeArguments in core/tests/Drupal/Tests/Core/Render/RendererTest.php
@covers ::render @covers ::doRender
RequiredModuleUninstallValidatorTest::testValidateNoModule in core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php
@covers ::validate
RequiredModuleUninstallValidatorTest::testValidateNotRequired in core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php
@covers ::validate
RequiredModuleUninstallValidatorTest::testValidateRequired in core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php
@covers ::validate
ResourceResponseSubscriberTest::testOnResponseWithCacheableResponse in core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php
@covers ::onResponse @covers ::getResponseFormat @covers ::renderResponseBody @covers ::flattenResponse
ResourceResponseSubscriberTest::testOnResponseWithUncacheableResponse in core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php
@covers ::onResponse @covers ::getResponseFormat @covers ::renderResponseBody @covers ::flattenResponse
ResourceResponseSubscriberTest::testResponseFormat in core/modules/rest/tests/src/Unit/EventSubscriber/ResourceResponseSubscriberTest.php
@covers ::getResponseFormat
RowTest::testHashing in core/modules/migrate/tests/src/Unit/RowTest.php
Tests hashing.
SettingsTest::setUp in core/tests/Drupal/Tests/Core/Site/SettingsTest.php
@covers ::__construct
StorageCopyTraitTest::generateRandomData in core/tests/Drupal/Tests/Core/Config/StorageCopyTraitTest.php
Generate random data in a config storage.
TimestampItemNormalizerTest::testDenormalize in core/modules/serialization/tests/src/Unit/Normalizer/TimestampItemNormalizerTest.php
@covers ::denormalize
TimestampItemNormalizerTest::testNormalize in core/modules/serialization/tests/src/Unit/Normalizer/TimestampItemNormalizerTest.php
@covers ::normalize
TimestampNormalizerTest::testNormalize in core/modules/serialization/tests/src/Unit/Normalizer/TimestampNormalizerTest.php
@covers ::normalize
TokenTest::testGetInfo in core/tests/Drupal/Tests/Core/Utility/TokenTest.php
@covers ::getInfo
TranslationTest::providerTestGet in core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php
Provides data to self::testGet().
ViewAjaxControllerTest::testAjaxViewWithPager in core/modules/views/tests/src/Unit/Controller/ViewAjaxControllerTest.php
Tests a valid view with a pager.
ViewsBlockTest::testBuild in core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php
Tests the build method.