function MediaSettingsDefaultIframeDomainUpdateTest::testUpdate

Same name in other branches
  1. 10 core/modules/media/tests/src/Functional/Update/MediaSettingsDefaultIframeDomainUpdateTest.php \Drupal\Tests\media\Functional\Update\MediaSettingsDefaultIframeDomainUpdateTest::testUpdate()

Tests update of media.settings:iframe_domain.

File

core/modules/media/tests/src/Functional/Update/MediaSettingsDefaultIframeDomainUpdateTest.php, line 52

Class

MediaSettingsDefaultIframeDomainUpdateTest
Tests update of media.settings:iframe_domain if it's still the default of "".

Namespace

Drupal\Tests\media\Functional\Update

Code

public function testUpdate() {
    $iframe_domain_before = $this->config('media.settings')
        ->get('iframe_domain');
    $this->assertSame('', $iframe_domain_before);
    $this->runUpdates();
    $iframe_domain_after = $this->config('media.settings')
        ->get('iframe_domain');
    $this->assertNull($iframe_domain_after);
}

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