83 calls to ExpectDeprecationTrait::expectDeprecation()

BlockThemeDeprecationTest::testConstructorDeprecation in core/modules/block/tests/src/Unit/Plugin/migrate/process/BlockThemeDeprecationTest.php
Tests the deprecation in the constructor.
ConfigSchemaDeprecationTest::testConfigSchemaDeprecation in core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaDeprecationTest.php
Tests config schema deprecation.
DeprecatedAssetsTest::testDeprecatedLibraries in core/tests/Drupal/KernelTests/Core/Asset/DeprecatedAssetsTest.php
Confirms the status and definition contents of deprecated libraries.
DeprecatedTemplateTest::testDeprecatedTemplate in core/modules/system/tests/src/Functional/Module/DeprecatedTemplateTest.php
Tests that the deprecated template is marked as deprecated.
DoTrustedCallbackTraitTest::testSilencedDeprecation in core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php
@dataProvider errorTypeProvider @group legacy
EntityDeprecationTest::testCreateUserDeprecation in core/tests/Drupal/KernelTests/Core/Entity/EntityDeprecationTest.php
Tests deprecation of \Drupal\KernelTests\Core\Entity\EntityKernelTestBase::createUser().
ExpectDeprecationTest::testExpectDeprecation in core/tests/Drupal/Tests/ExpectDeprecationTest.php
Tests expectDeprecation.
ExpectDeprecationTest::testExpectDeprecationInIsolation in core/tests/Drupal/Tests/ExpectDeprecationTest.php
Tests expectDeprecation in isolated test.
InternalViolationTest::testSetGetArrayPropertyPath in core/tests/Drupal/Tests/Core/Field/InternalViolationTest.php
@covers ::__get @covers ::__set
InternalViolationTest::testSetGetDynamicProperties in core/tests/Drupal/Tests/Core/Field/InternalViolationTest.php
@covers ::__get @covers ::__set
JavascriptDeprecationTest::testJavascriptDeprecation in core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php
Tests Javascript deprecation notices.
LegacyAssetTest::testDeprecatedDrupalFlushCssJs in core/tests/Drupal/KernelTests/Core/Asset/LegacyAssetTest.php
Tests the deprecation.
LegacyBootstrapTest::testWatchdogException in core/tests/Drupal/KernelTests/Core/Bootstrap/LegacyBootstrapTest.php
Tests watchdog_exception() deprecation.
LegacyCommonTest::testFormatSizeDeprecation in core/tests/Drupal/KernelTests/Core/Common/LegacyCommonTest.php
Tests deprecation of the format_size() function.
LegacyExtensionTest::testDeprecatedCall in core/tests/Drupal/Tests/Core/Extension/LegacyExtensionTest.php
@covers ::__call
LegacyFileModuleTest::testFileIconClassDeprecation in core/modules/file/tests/src/Kernel/LegacyFileModuleTest.php
@covers ::file_icon_class
LegacyFileModuleTest::testFileIconMapDeprecation in core/modules/file/tests/src/Kernel/LegacyFileModuleTest.php
@covers ::file_icon_map
LegacyFileModuleTest::testFileProgressDeprecation in core/modules/file/tests/src/Kernel/LegacyFileModuleTest.php
@covers ::file_progress_implementation
LegacyFileSystemTest::testCopyWithDeprecatedFileExists in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
@covers ::copy
LegacyFileSystemTest::testCopyWithOutOfBoundsIntNegative in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
@covers ::copy
LegacyFileSystemTest::testCopyWithOutOfBoundsIntPositive in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
@covers ::copy
LegacyFileSystemTest::testMoveWithDeprecatedFileExists in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
@covers ::move
LegacyFileSystemTest::testSaveDataWithDeprecatedFileExists in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
@covers ::saveData
LegacyFileThemeTest::testTemplatePreprocessFileUploadHelp in core/modules/file/tests/src/Kernel/LegacyFileThemeTest.php
@covers ::template_preprocess_file_upload_help
LegacyFileUploadHandlerTest::testThrow in core/modules/file/tests/src/Kernel/Upload/LegacyFileUploadHandlerTest.php
@covers ::handleFileUpload
LegacyMatcherDumperTest::testConstructorDeprecationNoLogger in core/tests/Drupal/KernelTests/Core/Routing/LegacyMatcherDumperTest.php
Tests the constructor deprecations.
LegacyMatcherDumperTest::testConstructorDeprecationWithLegacyTableNameParam in core/tests/Drupal/KernelTests/Core/Routing/LegacyMatcherDumperTest.php
Tests the constructor deprecations.
LegacyPasswordHashingTest::setUp in core/modules/phpass/tests/src/Unit/LegacyPasswordHashingTest.php
LegacySettingsRewriteTest::testDrupalRewriteSettings in core/tests/Drupal/KernelTests/Core/Site/LegacySettingsRewriteTest.php
Tests the drupal_rewrite_settings() function.
LegacyStateTest::testDeprecatedState in core/tests/Drupal/KernelTests/Core/State/LegacyStateTest.php
@covers ::get @covers ::set
LegacyUserTest::testUserRolePermissions in core/modules/user/tests/src/Kernel/LegacyUserTest.php
Tests deprecation of user_role_permissions().
LegacyValidateTest::testCallerValidation in core/modules/file/tests/src/Kernel/LegacyValidateTest.php
Tests that the validators passed into are checked.
LegacyValidateTest::testInsecureExtensions in core/modules/file/tests/src/Kernel/LegacyValidateTest.php
Tests hard-coded security check in file_validate().
LegacyValidatorTest::testFileValidateExtensions in core/modules/file/tests/src/Kernel/LegacyValidatorTest.php
Tests the file_validate_extensions() function.
LegacyValidatorTest::testFileValidateExtensionsOnUri in core/modules/file/tests/src/Kernel/LegacyValidatorTest.php
Tests the file_validate_extensions() function.
LegacyValidatorTest::testFileValidateImageResolution in core/modules/file/tests/src/Kernel/LegacyValidatorTest.php
This ensures the dimensions of a specific file is within bounds.
LegacyValidatorTest::testFileValidateIsImage in core/modules/file/tests/src/Kernel/LegacyValidatorTest.php
This ensures a specific file is actually an image.
LegacyValidatorTest::testFileValidateNameLength in core/modules/file/tests/src/Kernel/LegacyValidatorTest.php
This will ensure the filename length is valid.
LegacyValidatorTest::testFileValidateSize in core/modules/file/tests/src/Kernel/LegacyValidatorTest.php
Tests file_validate_size().
LibraryDiscoveryCollectorTest::testLibrariesExtendDeprecated in core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryCollectorTest.php
Tests a deprecated library with an extend.
LibraryDiscoveryIntegrationTest::testDeprecatedLibrary in core/tests/Drupal/KernelTests/Core/Asset/LibraryDiscoveryIntegrationTest.php
Test library deprecation support.
LibraryDiscoveryParserTest::testLibraryOverrideDeprecated in core/tests/Drupal/Tests/Core/Asset/LibraryDiscoveryParserTest.php
Tests deprecated library with an override.
MenuLinkContentDeprecationsTest::testMenuLinkContentFormConstructorDeprecation in core/modules/menu_link_content/tests/src/Kernel/MenuLinkContentDeprecationsTest.php
Tests the deprecation in the \Drupal\menu_link_content\Form\MenuLinkContentForm constructor.
MigrateSkipProcessExceptionTest::testDeprecation in core/modules/migrate/tests/src/Unit/Exception/MigrateSkipProcessExceptionTest.php
Tests a deprecation error is triggered on throw.
ModuleHandlerDeprecatedHookTest::testAlterDeprecated in core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
@covers ::alterDeprecated
ModuleHandlerDeprecatedHookTest::testInvokeAllDeprecated in core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
@covers ::invokeAllDeprecated
ModuleHandlerDeprecatedHookTest::testInvokeDeprecated in core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
@covers ::invokeDeprecated
ModuleHandlerTest::testGetNameDeprecation in core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerTest.php
Tests deprecation of getName() function.
ModuleInstallerTest::testDeprecatedInstall in core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php
Tests trying to install a deprecated module.
ModuleInstallerTest::testUninstallValidatorsBC in core/tests/Drupal/KernelTests/Core/Extension/ModuleInstallerTest.php
Tests the BC layer for uninstall validators.
ModuleLegacyTest::testModuleLoadInclude in core/tests/Drupal/KernelTests/Core/Extension/ModuleLegacyTest.php
Test deprecation of module_load_include() function.
NodeDeprecationTest::testNodeRevisionDeleteDeprecation in core/modules/node/tests/src/Kernel/NodeDeprecationTest.php
Tests the deprecation of node_revision_delete.
NodeDeprecationTest::testNodeRevisionDeleteFormConstructorDeprecation in core/modules/node/tests/src/Kernel/NodeDeprecationTest.php
Tests the deprecation of NodeRevisionDeleteForm constructor.
NodeDeprecationTest::testNodeRevisionLoadDeprecation in core/modules/node/tests/src/Kernel/NodeDeprecationTest.php
Tests the deprecation of node_revision_load.
NodeDeprecationTest::testNodeTypeUpdateNodesDeprecation in core/modules/node/tests/src/Kernel/NodeDeprecationTest.php
Tests the deprecation of node_type_update_nodes.
OembedUpdateTest::testUpdate in core/modules/media/tests/src/Functional/FieldFormatter/OembedUpdateTest.php
Test eager-load setting upgrade path.
PasswordHashingLegacyTest::testDeprecation in core/tests/Drupal/Tests/Core/Password/PasswordHashingLegacyTest.php
@covers \Drupal\Core\Password\PhpassHashedPassword
PhpUnitBridgeIsolatedTest::testDeprecatedClass in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php
PhpUnitBridgeTest::testDeprecatedClass in core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
PhpUnitBridgeTest::testDeprecatedClass in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeTest.php
Tests class-level deprecation.
PhpUnitBridgeTest::testDeprecatedFunction in core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
PhpUnitBridgeTest::testErrorOnSiteUnderTest in core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php
Tests deprecation message from deprecated route.
PhpUnitBridgeTest::testSilencedError in core/tests/Drupal/FunctionalTests/Core/Test/PhpUnitBridgeTest.php
Tests deprecation message from deprecation_test_function().
PhpUnitWarningsTest::testAddWarning in core/tests/Drupal/Tests/PhpUnitWarningsTest.php
Tests that selected PHPUnit warning is converted to deprecation.
RenderTest::testDeprecateRenderPlain in core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
Tests the deprecation of \Drupal\Core\Render\Renderer::renderPlain()
ResponsiveImageLazyLoadUpdateTest::testEntitySave in core/modules/responsive_image/tests/src/Functional/ResponsiveImageLazyLoadUpdateTest.php
Test responsive_image_entity_view_display_presave invokes deprecations.
ResponsiveImageOrderMultipliersNumericallyUpdateTest::testEntitySave in core/modules/responsive_image/tests/src/Functional/ResponsiveImageOrderMultipliersNumericallyUpdateTest.php
Test ResponsiveImageStyle::preSave correctly orders by multiplier weight.
ServiceDeprecationTest::testGetDeprecated in core/tests/Drupal/FunctionalTests/Core/Container/ServiceDeprecationTest.php
@covers ::get
SettingsTest::testFakeDeprecatedSettings in core/tests/Drupal/Tests/Core/Site/SettingsTest.php
Tests deprecation messages and values when using fake deprecated settings.
SettingsTest::testRealDeprecatedSettings in core/tests/Drupal/Tests/Core/Site/SettingsTest.php
Tests deprecation messages for real deprecated settings.
SqlDeprecationTest::testOptionalParametersDeprecation in core/modules/migrate/tests/src/Kernel/Plugin/id_map/SqlDeprecationTest.php
@covers \Drupal\migrate\Plugin\migrate\id_map\Sql::__construct
TestSetupTraitTest::testGetDatabaseConnection in core/tests/Drupal/KernelTests/Core/Test/TestSetupTraitTest.php
@covers ::getDatabaseConnection @group legacy
ThemeExtensionListTest::testGetBaseThemes in core/tests/Drupal/Tests/Core/Extension/ThemeExtensionListTest.php
Tests getting the base themes for a set a defines themes.
ThemeHandlerTest::testRebuildThemeData in core/tests/Drupal/Tests/Core/Extension/ThemeHandlerTest.php
Tests rebuilding the theme data.
ThemeInstallerTest::testInstallDeprecated in core/tests/Drupal/KernelTests/Core/Theme/ThemeInstallerTest.php
Tests trying to install a deprecated theme.
ThemeRenderAndAutoescapeTest::setUp in core/tests/Drupal/KernelTests/Core/Theme/ThemeRenderAndAutoescapeTest.php
TruncateDeprecateTest::testDeprecateViewsUiTruncate in core/modules/views_ui/tests/src/Kernel/TruncateDeprecateTest.php
Tests the deprecation of views_ui_truncate() replaced by Unicode::truncate.
TwigDeprecationsTest::testEmptyDeprecation in core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php
Test deprecation of empty variable triggers error.
TwigDeprecationsTest::testHookThemeDeprecations in core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php
Test deprecating variables at definition in hook_theme().
TwigDeprecationsTest::testMultipleDeprecations in core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php
Test deprecation of multiple variables triggers errors.
TwigDeprecationsTest::testSingleDeprecation in core/tests/Drupal/KernelTests/Core/Theme/TwigDeprecationsTest.php
Test deprecation of single variable triggers error.
UserValidationTest::testUsernames in core/modules/user/tests/src/Kernel/UserValidationTest.php
Tests user name validation.
WorkspaceAssociationDeprecationTest::testPostPublishDeprecation in core/modules/workspaces/tests/src/Kernel/WorkspaceAssociationDeprecationTest.php
@covers ::postPublish

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