function FileVideoFormatterUpdateTest::testPlaysInlineUpdate
@covers \file_post_update_add_playsinline
File
-
core/
modules/ file/ tests/ src/ Functional/ Formatter/ FileVideoFormatterUpdateTest.php, line 37
Class
- FileVideoFormatterUpdateTest
- Tests the upgrade path for video formatters.
Namespace
Drupal\Tests\file\Functional\FormatterCode
public function testPlaysInlineUpdate() : void {
$display = $this->config('core.entity_view_display.node.article.default');
$settings = $display->get('content.field_video.settings');
$this->assertArrayNotHasKey('playsinline', $settings);
$this->runUpdates();
$display = $this->config('core.entity_view_display.node.article.default');
$settings = $display->get('content.field_video.settings');
$this->assertFalse($settings['playsinline']);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.