public function Update350Test::test in Lightning Media 8.3
Same name in this branch
- 8.3 modules/lightning_media_video/tests/src/Kernel/Update350Test.php \Drupal\Tests\lightning_media_video\Kernel\Update350Test::test()
- 8.3 modules/lightning_media_audio/tests/src/Kernel/Update/Update350Test.php \Drupal\Tests\lightning_media_audio\Kernel\Update\Update350Test::test()
Same name and namespace in other branches
- 8.4 modules/lightning_media_audio/tests/src/Kernel/Update/Update350Test.php \Drupal\Tests\lightning_media_audio\Kernel\Update\Update350Test::test()
@covers ::removeAudioFileLibraryFieldTranslatability
File
- modules/
lightning_media_audio/ tests/ src/ Kernel/ Update/ Update350Test.php, line 42
Class
- Update350Test
- @group lightning_media @group lightning_media_audio
Namespace
Drupal\Tests\lightning_media_audio\Kernel\UpdateCode
public function test() {
$io = $this
->prophesize(StyleInterface::class);
$io
->confirm(Argument::type('string'))
->willReturn(TRUE);
Update350::create($this->container)
->removeAudioFileLibraryFieldTranslatability($io
->reveal());
$this
->assertFalse(FieldConfig::loadByName('media', 'audio_file', 'field_media_in_library')
->isTranslatable());
}