31 calls to DrupalTestCaseTrait::expectExceptionMessageIsOrContains()
- AddModerationConfigActionTest::testActionOnlyTargetsWorkflows in core/
modules/ content_moderation/ tests/ src/ Kernel/ ConfigAction/ AddModerationConfigActionTest.php - Tests that the action only targets workflows.
- AddToAllBundlesConfigActionTest::testInstantiateNewFieldOnAllBundles in core/
modules/ field/ tests/ src/ Kernel/ AddToAllBundlesConfigActionTest.php - Tests instantiating a field on all bundles of an entity type.
- AllowedValuesConstraintValidatorTest::testValidationCallbackException in core/
tests/ Drupal/ KernelTests/ Core/ TypedData/ AllowedValuesConstraintValidatorTest.php - Tests the AllowedValuesConstraintValidator with an invalid callback.
- BrowserTestBaseTest::testError in core/
tests/ Drupal/ FunctionalTests/ BrowserTestBaseTest.php - ComposerInspectorTest::testConfig in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerInspectorTest.php - Tests config.
- ConditionTest::testCompileWithSqlInjectionForOperator in core/
tests/ Drupal/ Tests/ Core/ Database/ ConditionTest.php - Tests compile with sql injection for operator.
- ConfigActionsTest::testPlaceBlockActionOnlyWorksOnBlocks in core/
modules/ block/ tests/ src/ Kernel/ ConfigActionsTest.php - Tests place block action only works on blocks.
- ContentModerationStateResourceTest::testCreateContentModerationStateResource in core/
modules/ content_moderation/ tests/ src/ Kernel/ ContentModerationStateResourceTest.php - DriverSpecificTransactionTestBase::testTransactionName in core/
tests/ Drupal/ KernelTests/ Core/ Database/ DriverSpecificTransactionTestBase.php - Tests for transaction names.
- ExplodeTest::testExplodeWithNonStrictAndNonCastable in core/
modules/ migrate/ tests/ src/ Unit/ process/ ExplodeTest.php - Tests Explode exception handling when string-cast fails.
- ExplodeTest::testExplodeWithNonString in core/
modules/ migrate/ tests/ src/ Unit/ process/ ExplodeTest.php - Tests explode fails properly on non-strings.
- FrontMatterTest::testFrontMatterBroken in core/
tests/ Drupal/ KernelTests/ Core/ Theme/ FrontMatterTest.php - Tests broken front matter.
- HelpTopicDiscoveryTest::testHelpTopicsBrokenYaml in core/
modules/ help/ tests/ src/ Unit/ HelpTopicDiscoveryTest.php - Tests help topics broken yaml.
- InfoParserUnitTest::testInfoParserBroken in core/
tests/ Drupal/ Tests/ Core/ Extension/ InfoParserUnitTest.php - Tests that the correct exception is thrown for a broken info file.
- InfoParserUnitTest::testInvalidLifecycle in core/
tests/ Drupal/ Tests/ Core/ Extension/ InfoParserUnitTest.php - Tests an info file with invalid lifecycle values.
- InputTest::testMissingArgumentsThrowsException in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ InputTest.php - Tests missing arguments throws exception.
- PermissionsPerBundleTest::testActionIsOnlyAvailableToUserRoles in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ PermissionsPerBundleTest.php - Tests that the permissions-per-bundle action can only be applied to roles.
- RecipeRunnerTest::testInvalidConfigAction in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeRunnerTest.php - Tests a recipe with an invalid configuration action.
- RecipeRunnerTest::testInvalidConfigActionAppliedOnConfigEntity in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ RecipeRunnerTest.php - Tests a recipe with an invalid action configuration.
- SandboxManagerBaseTest::testFailureCollectPathsToExclude in core/
modules/ package_manager/ tests/ src/ Kernel/ SandboxManagerBaseTest.php - Tests that if a stage fails to get paths to exclude, throws a stage exception.
- SandboxManagerBaseTest::testFailureCollectPathsToExcludeOnApply in core/
modules/ package_manager/ tests/ src/ Kernel/ SandboxManagerBaseTest.php - Tests that if apply fails to get paths to exclude, throws a stage exception.
- SchemaTest::testSchemaTableColumnSizeTooLargeException in core/
modules/ mysql/ tests/ src/ Kernel/ mysql/ SchemaTest.php - Tests SchemaTableColumnSizeTooLargeException.
- SpecialAttributesRouteSubscriberTest::testOnRouteBuildingInvalidVariables in core/
tests/ Drupal/ Tests/ Core/ EventSubscriber/ SpecialAttributesRouteSubscriberTest.php - Tests the onAlterRoutes method for invalid variables.
- TransactionTest::testArbitraryTransactionNames in core/
tests/ Drupal/ KernelTests/ Core/ Database/ TransactionTest.php - Tests for arbitrary transaction names.
- TransactionTest::testTransactionName in core/
tests/ Drupal/ KernelTests/ Core/ Database/ TransactionTest.php - Tests for transaction names.
- WebAssertTest::testElementTextEquals in core/
tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php - Tests element text equals.
- WebAssertTest::testPageTextContainsOnce in core/
tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php - Tests page text contains once.
- WebAssertTest::testPageTextMatchesCount in core/
tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php - Tests page text matches count.
- WebAssertTest::testResponseHeaderDoesNotExist in core/
tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php - Tests WebAssert::responseHeaderDoesNotExist().
- WebAssertTest::testResponseHeaderExists in core/
tests/ Drupal/ Tests/ Core/ Test/ WebAssertTest.php - Tests WebAssert::responseHeaderExists().
- WildcardConfigActionsTest::testCreateForEachNotAvailableOnNonBundleEntities in core/
tests/ Drupal/ KernelTests/ Core/ Recipe/ WildcardConfigActionsTest.php - Tests that the createForEach action only works on bundle entities.
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.