When running PHPUnit 6.5.14 by Sebastian Bergmann and contributors.

I received the following deprecation notices

15x: Drupal\Tests\BrowserTestBase::$defaultTheme is required in drupal:9.0.0 when using an install profile that does not set a default theme. See https://www.drupal.org/node/3083055, which includes recommendations on which theme to use.
1x in CasAutoAssignedRolesTest::testCasAutoAssignedRoles from Drupal\Tests\cas\Functional
1x in CasLoginFormTest::testLoginLinkOnLoginForm from Drupal\Tests\cas\Functional
1x in CasLoginFormTest::testPreventNormalLogin from Drupal\Tests\cas\Functional
1x in CasEventsTest::testSettingPropertiesOnRegistration from Drupal\Tests\cas\Functional
1x in CasEventsTest::testLoginCancelling from Drupal\Tests\cas\Functional
1x in CasSubscriberTest::testForcedLoginPaths from Drupal\Tests\cas\Functional
1x in CasSubscriberTest::testGatewayPaths from Drupal\Tests\cas\Functional
1x in CasPasswordResetTest::testPasswordResetAsAnonymous from Drupal\Tests\cas\Functional
1x in CasPasswordResetTest::testPasswordResetAsAuthenticated from Drupal\Tests\cas\Functional
1x in CasForcedLoginControllerTest::testForcedLoginRoute from Drupal\Tests\cas\Functional
1x in CasUserInteractionTest::testUserInteraction from Drupal\Tests\cas\Functional
1x in CasUserFormFieldTest::testCasUsernameField from Drupal\Tests\cas\Functional
1x in CasUserFormFieldTest::testRestrictedPasswordManagementWorks from Drupal\Tests\cas\Functional
1x in CasUserFormFieldTest::testRestrictedEmailManagementWorks from Drupal\Tests\cas\Functional
1x in CasBulkAddCasUsersTest::testBulkAddForm from Drupal\Tests\cas\Functional

Comments

trackleft2 created an issue. See original summary.

trackleft2’s picture

Assigned: trackleft2 » Unassigned
trackleft2’s picture

Assigned: Unassigned » trackleft2
Status: Active » Needs review
StatusFileSize
new4.21 KB

Here is a patch to declare the default theme in functional tests.

trackleft2’s picture

Removing trailing whitespace.

trackleft2’s picture

Here is a patch to declare the default theme in functional tests.

trackleft2’s picture

Adding new patch for sites using drupal/cas 1.6 instead of dev.

trackleft2’s picture

StatusFileSize
new4.19 KB

Ugh, sorry about the noise, I missed some needed changes in the v 1.6 patch.

bkosborne’s picture

Status: Needs review » Fixed
StatusFileSize
new3.71 KB

Hi! Thanks for the contribution. I cleaned things up a bit and fixed some inheritance so that we just need to declare the default theme in the base test class.

  • bkosborne committed 8aca59e on 8.x-1.x authored by trackleft2
    Issue #3124254 by trackleft2, bkosborne: PHPUnit deprecation notice $...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.