Issue #3612441: Create Page and Article content types in tests when the Standard profile no longer provides them (Drupal 11.4)

Fixes the functional test suite on Drupal 11.4.

Drupal 11.4 removed the Article and Basic page content types from the Standard install profile, so the many functional tests that rely on them (via DomainTestBase + the Standard profile) fail with Mink ExpectationExceptions on node forms and content assertions.

DomainTestBase::setUp() now creates the page and article content types when they are missing (ensureContentTypes()), keeping the tests profile-agnostic and compatible with both older and newer core (a no-op on cores where the Standard profile still ships them). The two tests that already worked around this with a $this->profile !== 'standard' guard (DomainAccessPermissionsTest, DomainAccessUnpublishedGrantsTest) have had that now-redundant, and incorrect on 11.4, block removed.

Note: this MR branches from current 4.x, so its phpstan/phpcs jobs still show the pre-existing failures tracked in #3612201 (not merged here). The relevant job for this issue is phpunit.

Merge request reports

Loading