71 calls to UnitTestCase::getStringTranslationStub()

BanAdminTest::testIpValidation in core/modules/ban/tests/src/Unit/BanAdminTest.php
Tests various user input to confirm correct validation.
BanAdminTest::testRouteParameter in core/modules/ban/tests/src/Unit/BanAdminTest.php
Test passing an IP address as a route parameter.
BanAdminTest::testSubmit in core/modules/ban/tests/src/Unit/BanAdminTest.php
Test form submission.
BaseFieldDefinitionTestBase::setUp in core/tests/Drupal/Tests/Core/Field/BaseFieldDefinitionTestBase.php
BlockManagerTest::setUp in core/tests/Drupal/Tests/Core/Block/BlockManagerTest.php
BookManagerTest::setUp in core/modules/book/tests/src/Unit/BookManagerTest.php
BookUninstallValidatorTest::setUp in core/modules/book/tests/src/Unit/BookUninstallValidatorTest.php
ByteSizeMarkupTest::testCommonFormatSize in core/tests/Drupal/Tests/Core/StringTranslation/ByteSizeMarkupTest.php
@covers ::create @dataProvider providerTestCommonFormatSize
ByteSizeMarkupTest::testTranslatableMarkupObject in core/tests/Drupal/Tests/Core/StringTranslation/ByteSizeMarkupTest.php
@covers ::create
CategorizingPluginManagerTraitTest::setUp in core/tests/Drupal/Tests/Core/Plugin/CategorizingPluginManagerTraitTest.php
CommentBulkFormTest::testConstructor in core/modules/comment/tests/src/Unit/Plugin/views/field/CommentBulkFormTest.php
Tests the constructor assignment of actions.
CommentLinkBuilderTest::setUp in core/modules/comment/tests/src/Unit/CommentLinkBuilderTest.php
Prepares mocks for the test.
ConfigEntityMapperTest::setUp in core/modules/config_translation/tests/src/Unit/ConfigEntityMapperTest.php
ConfigFieldMapperTest::setUp in core/modules/config_translation/tests/src/Unit/ConfigFieldMapperTest.php
ConfigNamesMapperTest::setUp in core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php
ContentTranslationLocalTasksTest::setUp in core/modules/content_translation/tests/src/Unit/Menu/ContentTranslationLocalTasksTest.php
DateTest::setUp in core/tests/Drupal/Tests/Core/Datetime/DateTest.php
EntityTypeTest::testGetBundleLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests the ::getBundleLabel() method.
EntityTypeTest::testGetCollectionLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getCollectionLabel
EntityTypeTest::testGetCountLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getCountLabel
EntityTypeTest::testGetCountLabelDefault in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getCountLabel
EntityTypeTest::testGetPluralLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getPluralLabel
EntityTypeTest::testGetPluralLabelDefault in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getPluralLabel
EntityTypeTest::testGetSingularLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getSingularLabel
EntityTypeTest::testGetSingularLabelDefault in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getSingularLabel
FieldItemListTest::testDefaultValuesForm in core/tests/Drupal/Tests/Core/Field/FieldItemListTest.php
@covers ::defaultValuesForm
FieldTypePluginManagerTest::setUp in core/tests/Drupal/Tests/Core/Field/FieldTypePluginManagerTest.php
FieldUninstallValidatorTest::setUp in core/modules/field/tests/src/Unit/FieldUninstallValidatorTest.php
FilterHtmlTest::setUp in core/modules/filter/tests/src/Unit/FilterHtmlTest.php
FilterUninstallValidatorTest::setUp in core/modules/filter/tests/src/Unit/FilterUninstallValidatorTest.php
FinalExceptionSubscriberTest::testOnExceptionWithUnknownFormat in core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php
@covers ::onException
FormAjaxSubscriberTest::setUp in core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php
FormAjaxSubscriberTest::testOnExceptionBrokenPostRequest in core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php
@covers ::onException
FormErrorHandlerTest::setUp in core/modules/inline_form_errors/tests/src/Unit/FormErrorHandlerTest.php
FormTestBase::setUp in core/tests/Drupal/Tests/Core/Form/FormTestBase.php
FormValidatorTest::testExecuteValidateHandlers in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
@covers ::executeValidateHandlers
FormValidatorTest::testHandleErrorsWithLimitedValidation in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
@covers ::handleErrorsWithLimitedValidation
FormValidatorTest::testPerformRequiredValidation in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
@covers ::performRequiredValidation
FormValidatorTest::testValidationComplete in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
Tests the 'validation_complete' $form_state flag.
ForumBreadcrumbBuilderBaseTest::testBuild in core/modules/forum/tests/src/Unit/Breadcrumb/ForumBreadcrumbBuilderBaseTest.php
Tests ForumBreadcrumbBuilderBase::build().
ForumListingBreadcrumbBuilderTest::testBuild in core/modules/forum/tests/src/Unit/Breadcrumb/ForumListingBreadcrumbBuilderTest.php
Tests ForumListingBreadcrumbBuilder::build().
ForumNodeBreadcrumbBuilderTest::testBuild in core/modules/forum/tests/src/Unit/Breadcrumb/ForumNodeBreadcrumbBuilderTest.php
Tests ForumNodeBreadcrumbBuilder::build().
ForumUninstallValidatorTest::setUp in core/modules/forum/tests/src/Unit/ForumUninstallValidatorTest.php
HelpTopicDiscoveryTest::testHelpTopicsDefinition in core/modules/help/tests/src/Unit/HelpTopicDiscoveryTest.php
@covers ::findAll
InOperatorTest::testValidate in core/modules/views/tests/src/Unit/Plugin/filter/InOperatorTest.php
@covers ::validate
LayoutPluginManagerTest::setUp in core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php
MailHandlerTest::setUp in core/modules/contact/tests/src/Unit/MailHandlerTest.php
MailManagerTest::setUpMailManager in core/tests/Drupal/Tests/Core/Mail/MailManagerTest.php
Sets up the mail manager for testing.
MenuLinkDefaultFormTest::testExtractFormValues in core/tests/Drupal/Tests/Core/Menu/MenuLinkDefaultFormTest.php
@covers ::extractFormValues
MigrateExecutableMemoryExceededTest::setUp in core/modules/migrate/tests/src/Unit/MigrateExecutableMemoryExceededTest.php
MigrateExecutableTest::setUp in core/modules/migrate/tests/src/Unit/MigrateExecutableTest.php
MigrationStateUnitTest::testGetUpgradeStates in core/modules/migrate_drupal/tests/src/Unit/MigrationStateUnitTest.php
Tests ::getUpgradeStates.
ModuleRequiredByThemesUninstallValidatorTest::setUp in core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php
NodeBulkFormTest::testConstructor in core/modules/node/tests/src/Unit/Plugin/views/field/NodeBulkFormTest.php
Tests the constructor assignment of actions.
NumericFilterTest::testAcceptExposedInput in core/modules/views/tests/src/Unit/Plugin/views/filter/NumericFilterTest.php
Tests the acceptExposedInput method.
PathBasedBreadcrumbBuilderTest::setUp in core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
@covers ::__construct
PluralTranslatableMarkupTest::testPluralTranslatableMarkupSerialization in core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php
Tests serialization of PluralTranslatableMarkup().
PreprocessPagerTest::setUp in core/modules/system/tests/src/Unit/Pager/PreprocessPagerTest.php
ProjectCoreCompatibilityTest::testSetProjectCoreCompatibilityRanges in core/modules/update/tests/src/Unit/ProjectCoreCompatibilityTest.php
@covers ::setReleaseMessage @dataProvider providerSetProjectCoreCompatibilityRanges
RequiredModuleUninstallValidatorTest::setUp in core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php
ShortcutLocalTasksTest::setUp in core/modules/shortcut/tests/src/Unit/Menu/ShortcutLocalTasksTest.php
SqlBaseTest::setUp in core/modules/views/tests/src/Unit/Plugin/pager/SqlBaseTest.php
TimeZoneFormHelperTest::setUp in core/tests/Drupal/Tests/Core/Datetime/TimeZoneFormHelperTest.php
TranslatableMarkupTest::testIsStringAssertion in core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php
@covers ::__construct
TranslationTest::setUp in core/tests/Drupal/Tests/Core/Annotation/TranslationTest.php
UpdateMailTest::setUp in core/modules/update/tests/src/Unit/UpdateMailTest.php
UserBulkFormTest::testConstructor in core/modules/user/tests/src/Unit/Plugin/views/field/UserBulkFormTest.php
Tests the constructor assignment of actions.
UserLocalTasksTest::setUp in core/modules/user/tests/src/Unit/Menu/UserLocalTasksTest.php
UserLocalTaskTest::setUp in core/modules/user/tests/src/Unit/Plugin/Derivative/UserLocalTaskTest.php
ViewExecutableTest::setUp in core/modules/views/tests/src/Unit/ViewExecutableTest.php
ViewListBuilderTest::testBuildRowEntityList in core/modules/views_ui/tests/src/Unit/ViewListBuilderTest.php
Tests the listing of displays on a views list builder.

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