Commit e420029e authored by catch's avatar catch
Browse files

Issue #3239292 by alexpott: Missing configuration in KernelTests causes deprecations in PHP 8.1

parent 3745a46a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ class AggregatorItemViewsFieldAccessTest extends FieldFieldAccessTestBase {
  protected function setUp($import_test_views = TRUE): void {
    parent::setUp($import_test_views);

    $this->installConfig(['aggregator']);
    $this->installEntitySchema('aggregator_feed');
    $this->installEntitySchema('aggregator_item');
  }
+1 −0
Original line number Diff line number Diff line
@@ -58,6 +58,7 @@ class IntegrationTest extends ViewsKernelTestBase {
  protected function setUp($import_test_views = TRUE): void {
    parent::setUp();

    $this->installConfig(['aggregator']);
    $this->installEntitySchema('aggregator_item');
    $this->installEntitySchema('aggregator_feed');

+1 −0
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@ class NewDefaultThemeBlocksTest extends KernelTestBase {
   * Check the enabled Bartik blocks are correctly copied over.
   */
  public function testNewDefaultThemeBlocks() {
    $this->installConfig(['system']);
    /** @var \Drupal\Core\Extension\ThemeInstallerInterface $theme_installer */
    $theme_installer = $this->container->get('theme_installer');
    $default_theme = $this->config('system.theme')->get('default');
+2 −1
Original line number Diff line number Diff line
@@ -19,13 +19,14 @@ class CommentOrphanTest extends EntityKernelTestBase {
  /**
   * {@inheritdoc}
   */
  protected static $modules = ['comment', 'node'];
  protected static $modules = ['comment', 'node', 'user'];

  /**
   * {@inheritdoc}
   */
  protected function setUp(): void {
    parent::setUp();
    $this->installConfig(['user']);
    $this->installEntitySchema('date_format');
    $this->installEntitySchema('comment');
    $this->installSchema('comment', ['comment_entity_statistics']);
+1 −0
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@ public function userMailsProvider() {
   * @dataProvider userMailsProvider
   */
  public function testUserMailsSent($op, array $mail_keys) {
    $this->installConfig('user');
    $this->config('user.settings')->set('notify.' . $op, TRUE)->save();
    $return = _user_mail_notify($op, $this->createUser());
    $this->assertTrue($return);
Loading