function MediaSettingsDefaultIframeDomainUpdateTest::testUpdate
Same name in other branches
- 11.x 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\UpdateCode
public function testUpdate() : void {
$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.