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
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3124254-8.patch | 3.71 KB | bkosborne |
| #7 | 3124254-v1-6#7-declare-default-theme-in-functional-test.patch | 4.19 KB | trackleft2 |
| #5 | 3124254-5-declare-default-theme-in-functional-tests.patch | 4.17 KB | trackleft2 |
Comments
Comment #2
trackleft2Comment #3
trackleft2Here is a patch to declare the default theme in functional tests.
Comment #4
trackleft2Removing trailing whitespace.
Comment #5
trackleft2Here is a patch to declare the default theme in functional tests.
Comment #6
trackleft2Adding new patch for sites using drupal/cas 1.6 instead of dev.
Comment #7
trackleft2Ugh, sorry about the noise, I missed some needed changes in the v 1.6 patch.
Comment #8
bkosborneHi! 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.