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
ByteSizeMarkupTest::testCommonFormatSize in core/tests/Drupal/Tests/Core/StringTranslation/ByteSizeMarkupTest.php
Tests common format size.
ByteSizeMarkupTest::testTranslatableMarkupObject in core/tests/Drupal/Tests/Core/StringTranslation/ByteSizeMarkupTest.php
Tests translatable markup object.
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.
ComponentValidatorTest::testCustomValidator in core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php
Tests we can use a custom validator to validate props.
ComponentValidatorTest::testValidatePropsInvalid in core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php
Tests that invalid props are handled properly.
ComponentValidatorTest::testValidatePropsValid in core/tests/Drupal/Tests/Core/Theme/Component/ComponentValidatorTest.php
Tests that valid props are handled properly.
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
DateHelperTest::setUp in core/tests/Drupal/Tests/Core/Datetime/DateHelperTest.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
Tests get collection label.
EntityTypeTest::testGetCountLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests get count label.
EntityTypeTest::testGetCountLabelDefault in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests get count label default.
EntityTypeTest::testGetPluralLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests get plural label.
EntityTypeTest::testGetPluralLabelDefault in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests get plural label default.
EntityTypeTest::testGetSingularLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests get singular label.
EntityTypeTest::testGetSingularLabelDefault in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
Tests get singular label default.
FieldItemListTest::testDefaultValuesForm in core/tests/Drupal/Tests/Core/Field/FieldItemListTest.php
Tests default values form.
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
Tests on exception with unknown format.
FormAjaxSubscriberTest::setUp in core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php
FormAjaxSubscriberTest::testOnExceptionBrokenPostRequest in core/tests/Drupal/Tests/Core/Form/EventSubscriber/FormAjaxSubscriberTest.php
Tests on exception broken post request.
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
Tests execute validate handlers.
FormValidatorTest::testHandleErrorsWithLimitedValidation in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
Tests handle errors with limited validation.
FormValidatorTest::testPerformRequiredValidation in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
Tests perform required validation.
FormValidatorTest::testValidationComplete in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
Tests the 'validation_complete' $form_state flag.
HelpTopicDiscoveryTest::testHelpTopicsDefinition in core/modules/help/tests/src/Unit/HelpTopicDiscoveryTest.php
Tests help topics definition.
InOperatorTest::testValidate in core/modules/views/tests/src/Unit/Plugin/filter/InOperatorTest.php
Tests 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
Tests extract form values.
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.
NumericArgumentTitleTest::createNumericArgument in core/modules/views/tests/src/Unit/Plugin/argument/NumericArgumentTitleTest.php
Creates a NumericArgument instance for testing.
NumericFilterTest::testAcceptExposedInput in core/modules/views/tests/src/Unit/Plugin/views/filter/NumericFilterTest.php
Tests the acceptExposedInput method.
PageContextTest::setUp in core/modules/navigation/tests/src/Unit/PageContextTest.php
PathBasedBreadcrumbBuilderTest::setUp in core/modules/system/tests/src/Unit/Breadcrumbs/PathBasedBreadcrumbBuilderTest.php
@legacy-covers ::__construct
PluralTranslatableMarkupTest::testPluralTranslatableMarkupSerialization in core/tests/Drupal/Tests/Core/StringTranslation/PluralTranslatableMarkupTest.php
Tests serialization of PluralTranslatableMarkup().
ProjectCoreCompatibilityTest::testSetProjectCoreCompatibilityRanges in core/modules/update/tests/src/Unit/ProjectCoreCompatibilityTest.php
Tests set project core compatibility ranges.
RequiredModuleUninstallValidatorTest::setUp in core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.php
SandboxDirectoryValidatorTest::testCheckNotInActive in core/modules/package_manager/tests/src/Unit/SandboxDirectoryValidatorTest.php
Tests check not in active.
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
TopBarItemManagerTest::setUp in core/modules/navigation/tests/src/Unit/TopBarItemManagerTest.php
TranslatableMarkupTest::testIsStringAssertion in core/tests/Drupal/Tests/Core/StringTranslation/TranslatableMarkupTest.php
Tests is string assertion.
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.