49 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
@covers ::create[[api-linebreak]] @dataProvider providerTestCommonFormatSize
ByteSizeMarkupTest::testTranslatableMarkupObject in core/tests/Drupal/Tests/Core/StringTranslation/ByteSizeMarkupTest.php
@covers ::create[[api-linebreak]]
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.
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
@covers ::getCollectionLabel[[api-linebreak]]
EntityTypeTest::testGetCountLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getCountLabel[[api-linebreak]]
EntityTypeTest::testGetCountLabelDefault in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getCountLabel[[api-linebreak]]
EntityTypeTest::testGetPluralLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getPluralLabel[[api-linebreak]]
EntityTypeTest::testGetPluralLabelDefault in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getPluralLabel[[api-linebreak]]
EntityTypeTest::testGetSingularLabel in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getSingularLabel[[api-linebreak]]
EntityTypeTest::testGetSingularLabelDefault in core/tests/Drupal/Tests/Core/Entity/EntityTypeTest.php
@covers ::getSingularLabel[[api-linebreak]]
FieldItemListTest::testDefaultValuesForm in core/tests/Drupal/Tests/Core/Field/FieldItemListTest.php
@covers ::defaultValuesForm[[api-linebreak]]
FieldTypePluginManagerTest::setUp in core/tests/Drupal/Tests/Core/Field/FieldTypePluginManagerTest.php
FinalExceptionSubscriberTest::testOnExceptionWithUnknownFormat in core/tests/Drupal/Tests/Core/EventSubscriber/FinalExceptionSubscriberTest.php
@covers ::onException[[api-linebreak]]
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[[api-linebreak]]
FormTestBase::setUp in core/tests/Drupal/Tests/Core/Form/FormTestBase.php
FormValidatorTest::testExecuteValidateHandlers in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
@covers ::executeValidateHandlers[[api-linebreak]]
FormValidatorTest::testHandleErrorsWithLimitedValidation in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
@covers ::handleErrorsWithLimitedValidation[[api-linebreak]]
FormValidatorTest::testPerformRequiredValidation in core/tests/Drupal/Tests/Core/Form/FormValidatorTest.php
@covers ::performRequiredValidation[[api-linebreak]]
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
@covers ::findAll[[api-linebreak]]
LayoutPluginManagerTest::setUp in core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.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[[api-linebreak]]
ModuleRequiredByThemesUninstallValidatorTest::setUp in core/tests/Drupal/Tests/Core/Extension/ModuleRequiredByThemesUninstallValidatorTest.php
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[[api-linebreak]]
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[[api-linebreak]] @dataProvider providerSetProjectCoreCompatibilityRanges
RequiredModuleUninstallValidatorTest::setUp in core/tests/Drupal/Tests/Core/Extension/RequiredModuleUninstallValidatorTest.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[[api-linebreak]]
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
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.