function UpdateEmptyEmailsUpdatePathTest::testRunUpdates

Tests update_post_update_fix_update_emails.

File

core/modules/update/tests/src/Functional/Update/UpdateEmptyEmailsUpdatePathTest.php, line 28

Class

UpdateEmptyEmailsUpdatePathTest
Tests update_post_update_fix_update_emails.

Namespace

Drupal\Tests\update\Functional\Update

Code

public function testRunUpdates() : void {
  // Add an empty email address, just as was previously possible.
  $this->config('update.settings')
    ->set('notification.emails', [
    '',
  ])
    ->save();
  $this->runUpdates();
  $this->assertEquals([], $this->config('update.settings')
    ->get('notification.emails'));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.