Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Drupal Test Assertions

Security covered Under active development

This project provides a collection of helper classes and methods to streamline writing tests for Drupal core. It offers assertions for common scenarios like checking entity fields, form visibility, entity references, moderation, language, roles, and page content.

This project provides some useful test assertions related to Drupal core modules.

  • assertEntityTypeHasField
  • assertFieldIsHiddenInForm
  • assertFieldIsVisibleInForm
  • assertFieldIsRequired
  • assertFieldIsNotRequired
  • assertEntityReferenceTargetBundles
  • assertEntityReferenceTargetBundlesStrict
  • assertNoCreateAccountsAllowed
  • assertUnprivilegedRolesCannotPerformRiskyActions
  • assertModerationEnabledForEntityType
  • assertWorkflowForEntityType
  • assertWorkflowTransition
  • assertLanguageExists
  • assertEntityExists
  • assertRoleExists
  • assertRoleHasPermissions
  • assertBooksAllowedInOutlines
  • assertBookChildPages
  • assertMetatag
  • assertRedirectedTo
  • assertUrlIs
  • assertStatusCode
  • assertPageContains
  • assertPageNotContains
Drupal 8–11

Ask your assistant about Drupal Test Assertions

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Feb 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 2
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.5 Stable 8–11 Oct 3, 2025
1.0.4 Stable 8–10 Nov 11, 2024
1.0.3 Stable 8–10 Mar 17, 2024
1.0.2 Stable 8–10 Jul 25, 2023
1.0.1 Stable 8–10 Mar 15, 2023
1.0.0 Stable 8–10 Feb 24, 2023