108 calls to ExpectDeprecationTrait::expectDeprecation()

BackwardsCompatibilityClassLoaderTest::testDoctrineException in core/tests/Drupal/KernelTests/Core/ClassLoader/BackwardsCompatibilityClassLoaderTest.php
Tests that the BC layer for Doctrine's AnnotationException works.
BackwardsCompatibilityClassLoaderTest::testModuleMovedClass in core/tests/Drupal/KernelTests/Core/ClassLoader/BackwardsCompatibilityClassLoaderTest.php
Tests that a moved class from a module works.
BcEngineTest::testPage in core/modules/system/tests/src/Functional/Theme/BcEngineTest.php
Tests that .engine theme engines still work.
BlockValidationTest::testWeightCannotBeNull in core/modules/block/tests/src/Kernel/BlockValidationTest.php
Tests weight cannot be null.
CKEditor5PluginManagerTest::testDeprecatedIcons in core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php
Tests deprecation and backwards compatibility of icon names.
CKEditor5PluginManagerTest::testDerivedPluginDefinitions in core/modules/ckeditor5/tests/src/Kernel/CKEditor5PluginManagerTest.php
Tests derived plugin definitions.
CommentUriDeprecationTest::testCommentUriMethod in core/modules/comment/tests/src/Kernel/CommentUriDeprecationTest.php
Tests the deprecation of comment_uri() method.
ConfigSchemaDeprecationTest::testConfigSchemaDeprecation in core/tests/Drupal/KernelTests/Core/Config/ConfigSchemaDeprecationTest.php
Tests config schema deprecation.
ConnectionTest::testDeprecationOfRootInConnectionOptionsFromUrl in core/modules/sqlite/tests/src/Unit/ConnectionTest.php
Confirms deprecation of the $root argument.
ConnectionTest::testSupportedLegacyFetchModes in core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
Tests supported fetch modes.
ConnectionTest::testUnsupportedFetchModes in core/tests/Drupal/Tests/Core/Database/ConnectionTest.php
Tests unsupported legacy fetch modes.
DefaultPluginManagerTest::testDefaultPluginManager in core/tests/Drupal/KernelTests/Core/Plugin/DefaultPluginManagerTest.php
Tests annotations and attributes on the default plugin manager.
DefaultPluginManagerTest::testDefaultPluginManagerAnnotationsOnly in core/tests/Drupal/KernelTests/Core/Plugin/DefaultPluginManagerTest.php
Tests the deprecation message for using only annotations.
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.
DialogDeprecationsTest::testDialogDeprecations in core/tests/Drupal/FunctionalJavascriptTests/Dialog/DialogDeprecationsTest.php
Tests that the deprecation events are triggered.
DoTrustedCallbackTraitTest::testSilencedDeprecation in core/tests/Drupal/Tests/Core/Security/DoTrustedCallbackTraitTest.php
Tests silenced deprecation.
EntityMethodConfigActionsTest::testSimpleConfigUpdateFailsOnEntities in core/tests/Drupal/KernelTests/Core/Recipe/EntityMethodConfigActionsTest.php
Tests that the simpleConfigUpdate action cannot be used on entities.
EntityOriginalDeprecationTest::testOriginalMagicGetSet in core/tests/Drupal/KernelTests/Core/Entity/EntityOriginalDeprecationTest.php
Tests deprecation of the original property.
EntityPermissionsFormTest::testPermissionsByProvider in core/modules/user/tests/src/Unit/Form/EntityPermissionsFormTest.php
Tests generating the permissions list.
EntityPermissionsRouteProviderWithCheckTest::testEntityPermissionsRouteProviderWithCheck in core/modules/user/tests/src/Unit/Entity/EntityPermissionsRouteProviderWithCheckTest.php
Tests the route provider deprecation.
EntityQueryServiceDeprecationTest::testPostgresServiceDeprecated in core/modules/pgsql/tests/src/Kernel/EntityQueryServiceDeprecationTest.php
Tests that the core provided service is deprecated.
EntityViewsDataTest::testDeprecations in core/modules/views/tests/src/Kernel/Entity/EntityViewsDataTest.php
Tests EntityViewsData deprecations.
ExecutableFinderTest::testLegacyExecutablePaths in core/modules/package_manager/tests/src/Unit/ExecutableFinderTest.php
Tests that the executable finder falls back to looking in config for paths.
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.
ExtensionMimeTypeGuesserDeprecationTest::testConstructorDeprecation in core/tests/Drupal/KernelTests/Core/File/ExtensionMimeTypeGuesserDeprecationTest.php
Tests that deprecations are raised for missing constructor arguments.
ExtensionMimeTypeGuesserLegacyTest::testFileMimeTypeDetectionCustomMapping in core/tests/Drupal/KernelTests/Core/File/MimeType/ExtensionMimeTypeGuesserLegacyTest.php
Tests mapping of mimetypes from filenames.
ExtensionMimeTypeGuesserLegacyTest::testGuessMimeType in core/tests/Drupal/KernelTests/Core/File/MimeType/ExtensionMimeTypeGuesserLegacyTest.php
Tests mapping of mimetypes from filenames.
FetchLegacyTest::testQueryFetchAllAssoc in core/tests/Drupal/KernelTests/Core/Database/FetchLegacyTest.php
Tests ::fetchAllAssoc().
FetchLegacyTest::testQueryFetchAllColumn in core/tests/Drupal/KernelTests/Core/Database/FetchLegacyTest.php
Confirms that we can fetch all records into an array explicitly.
FetchLegacyTest::testQueryFetchArray in core/tests/Drupal/KernelTests/Core/Database/FetchLegacyTest.php
Confirms that we can fetch a record to an associative array explicitly.
FetchLegacyTest::testQueryFetchNum in core/tests/Drupal/KernelTests/Core/Database/FetchLegacyTest.php
Confirms that we can fetch a record into an indexed array explicitly.
FetchLegacyTest::testQueryFetchObject in core/tests/Drupal/KernelTests/Core/Database/FetchLegacyTest.php
Confirms that we can fetch a record to an object explicitly.
FetchTest::testLegacyFetchColumn in core/tests/Drupal/KernelTests/Core/Database/FetchTest.php
Confirms deprecation of StatementPrefetchIterator::fetchColumn().
FieldStorageCreateCheckDeprecationTest::testFieldStorageCreateCheck in core/tests/Drupal/KernelTests/Core/Field/FieldStorageCreateCheckDeprecationTest.php
Tests the field storage create check subscriber.
FileSystemTest::testBasename in core/tests/Drupal/Tests/Core/File/FileSystemTest.php
Tests basename.
GenericCacheBackendUnitTestBase::testInvalidateAll in core/tests/Drupal/KernelTests/Core/Cache/GenericCacheBackendUnitTestBase.php
Tests Drupal\Core\Cache\CacheBackendInterface::invalidateAll().
HandlerTest::testAccess in core/modules/views/tests/src/Functional/Handler/HandlerTest.php
Tests access to a handler.
ImageDeprecationTest::testImageFilterKeywordDeprecation in core/modules/image/tests/src/Unit/ImageDeprecationTest.php
Tests deprecation of image_filter_keyword.
ItemsPerPageTest::testItemsPerPage in core/modules/views/tests/src/Functional/Wizard/ItemsPerPageTest.php
Tests the number of items per page.
JavascriptDeprecationTest::testJavascriptDeprecation in core/tests/Drupal/FunctionalJavascriptTests/JavascriptDeprecationTest.php
Tests Javascript deprecation notices.
LayoutPluginManagerTest::setUp in core/tests/Drupal/Tests/Core/Layout/LayoutPluginManagerTest.php
LegacyFileSystemTest::testCopyWithDeprecatedFileExists in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
Tests copy with deprecated file exists.
LegacyFileSystemTest::testCopyWithOutOfBoundsIntNegative in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
Tests copy with out of bounds int negative.
LegacyFileSystemTest::testCopyWithOutOfBoundsIntPositive in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
Tests copy with out of bounds int positive.
LegacyFileSystemTest::testMoveWithDeprecatedFileExists in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
Tests move with deprecated file exists.
LegacyFileSystemTest::testSaveDataWithDeprecatedFileExists in core/tests/Drupal/KernelTests/Core/File/LegacyFileSystemTest.php
Tests save data with deprecated file exists.
LegacyMimeTypeTest::testHookFileMimetypeMappingAlter in core/tests/Drupal/KernelTests/Core/File/MimeType/LegacyMimeTypeTest.php
Tests deprecation of hook_file_mimetype_mapping_alter.
LegacyRequirementSeverityTest::testGetMaxSeverity in core/tests/Drupal/KernelTests/Core/Extension/LegacyRequirementSeverityTest.php
Tests get max severity.
LegacySessionTest::testLegacyDataPersistence in core/modules/system/tests/src/Functional/Session/LegacySessionTest.php
Tests data persistence via the session_test module callbacks.
LegacyStatusReportTest::testGetSeveritiesDeprecation in core/tests/Drupal/KernelTests/Core/Render/Element/LegacyStatusReportTest.php
Tests the getSeverities() method deprecation.
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.
LocaleBulkDeprecationTest::testDeprecatedLocaleConfigBatchRefreshName in core/modules/locale/tests/src/Unit/LocaleBulkDeprecationTest.php
Tests the deprecation of locale_config_batch_refresh_name().
LocaleBulkDeprecationTest::testDeprecatedLocaleConfigBatchSetConfigLangcodes in core/modules/locale/tests/src/Unit/LocaleBulkDeprecationTest.php
Tests the deprecation of locale_config_batch_set_config_langcodes().
MenuLinkAddTest::testDeprecation in core/modules/menu_ui/tests/src/Kernel/MenuLinkAddTest.php
Tests \Drupal\menu_ui\Plugin\Menu\LocalAction\MenuLinkAdd deprecation.
MigrateFileGetIdsTest::fileMigrationSetup in core/modules/file/tests/src/Kernel/Migrate/d7/MigrateFileGetIdsTest.php
Prepare the file migration for running.
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
Tests alter deprecated.
ModuleHandlerDeprecatedHookTest::testInvokeAllDeprecated in core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
Tests invoke all deprecated.
ModuleHandlerDeprecatedHookTest::testInvokeDeprecated in core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerDeprecatedHookTest.php
Tests invoke deprecated.
ModuleHandlerTest::testAutoloadHookInfoFiles in core/modules/system/tests/src/Kernel/Extension/ModuleHandlerTest.php
Tests autoloading .token and .view files.
ModuleHandlerTest::testGetNameDeprecation in core/tests/Drupal/KernelTests/Core/Extension/ModuleHandlerTest.php
Tests deprecation of getName() function.
ModuleHandlerTest::testGroupIncludes in core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
Tests group includes.
ModuleHandlerTest::testLoadAllIncludes in core/tests/Drupal/Tests/Core/Extension/ModuleHandlerTest.php
Tests load all includes.
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.
NodeAccessTest::testNodeAccessViewAllNodesDeprecation in core/modules/node/tests/src/Kernel/NodeAccessTest.php
Tests node access view all nodes deprecation.
NodePageVariableDeprecationTest::testPageVariableDeprecation in core/modules/node/tests/src/Functional/NodePageVariableDeprecationTest.php
Tests that deprecations are thrown correctly for the page variable.
NodeSyndicateBlockTest::testSyndicateBlock in core/modules/node/tests/src/Functional/NodeSyndicateBlockTest.php
Tests that the "Syndicate" block is shown when enabled.
NodeTypeValidationTest::testPreviewModeValidation in core/modules/node/tests/src/Kernel/NodeTypeValidationTest.php
Tests that a node type's preview mode is constrained to certain values.
NumberTest::testAlphadecimalToIntReturnsZeroWithNullAndEmptyString in core/tests/Drupal/Tests/Component/Utility/NumberTest.php
Tests the alphadecimal conversion function keeps backward compatibility.
PageCacheLegacyTest::testDeprecatedKernelArgument in core/modules/page_cache/tests/src/Unit/PageCacheLegacyTest.php
Tests that page cache is constructed with a http kernel argument.
PhpUnitBridgeIsolatedTest::testDeprecatedClass in core/tests/Drupal/Tests/Core/Test/PhpUnitBridgeIsolatedTest.php
PhpUnitBridgeTest::testDeprecatedClass in core/tests/Drupal/KernelTests/Core/Test/PhpUnitBridgeTest.php
Tests class deprecation.
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
Tests function deprecation.
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().
RecipeRunnerTest::testRenamedConfigActions in core/tests/Drupal/KernelTests/Core/Recipe/RecipeRunnerTest.php
Tests that renamed plugins are marked as deprecated.
RefinableCacheableDependencyTraitTest::testNonCacheableDependencyAddDeprecation in core/tests/Drupal/Tests/Core/Cache/RefinableCacheableDependencyTraitTest.php
Tests non cacheable dependency add deprecation.
RenderTest::testDeprecateRenderPlain in core/tests/Drupal/KernelTests/Core/Render/RenderTest.php
Tests the deprecation of \Drupal\Core\Render\Renderer::renderPlain()
RequirementSeverityTest::testConvertLegacySeverities in core/tests/Drupal/Tests/Core/Extension/Requirement/RequirementSeverityTest.php
Tests convert legacy severities.
RouterTest::testRouteAliasWithDeprecation in core/modules/system/tests/src/Functional/Routing/RouterTest.php
Tests route aliasing with deprecation.
ServiceDeprecationTest::testGetDeprecated in core/tests/Drupal/FunctionalTests/Core/Container/ServiceDeprecationTest.php
Tests get deprecated.
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.
SourceModuleTest::testSourceModuleInMigration in core/modules/migrate_drupal_ui/tests/src/Kernel/SourceModuleTest.php
Tests the source_module is set when not in source plugin annotation.
StackedHttpKernelTest::testDeprecatedMiddlewaresArgument in core/tests/Drupal/Tests/Core/StackMiddleware/StackedHttpKernelTest.php
Tests that stacked kernel is constructed with a list of middlewares.
StatusReportPageTest::testPeRenderCounters in core/modules/system/tests/src/Kernel/Element/StatusReportPageTest.php
Tests the status report page element.
StatusReportTest::testPreRenderGroupRequirements in core/tests/Drupal/KernelTests/Core/Render/Element/StatusReportTest.php
Tests the status report element.
TaxonomyTermPageVariableDeprecationTest::testPageVariableDeprecation in core/modules/taxonomy/tests/src/Functional/TaxonomyTermPageVariableDeprecationTest.php
Tests that deprecations are thrown correctly for the page variable.
ThemeDeprecationTest::testTemplatePreprocessIncludes in core/modules/system/tests/src/Kernel/Theme/ThemeDeprecationTest.php
Tests deprecations around template_preprocess functions and include files.
ThemeEngineTest::testThemeEngineDeprecation in core/modules/system/tests/src/Kernel/Theme/ThemeEngineTest.php
Tests deprecated theme engine .engine files.
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.
ThemeSuggestionsAlterTest::testDeprecatedTemplateSuggestions in core/modules/system/tests/src/Functional/Theme/ThemeSuggestionsAlterTest.php
Testing deprecated suggestions.
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.
UrlConversionTest::testDeprecationOfRootParameter in core/tests/Drupal/Tests/Core/Database/UrlConversionTest.php
Tests deprecation of root parameter.
UserSessionTest::testNamePropertyDeprecation in core/tests/Drupal/Tests/Core/Session/UserSessionTest.php
Tests the name property deprecation.
UserValidationTest::testUsernames in core/modules/user/tests/src/Kernel/UserValidationTest.php
Tests user name validation.
ViewsBlockTest::testSaveBlockWithDeprecatedItemsPerPageSetting in core/modules/views/tests/src/Kernel/Plugin/ViewsBlockTest.php
Tests that saving a Views block with items_per_page = `none` is deprecated.

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