public function MediaLibraryStateTest::testOpenerParameters in Drupal 9
Same name and namespace in other branches
- 8 core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryStateTest::testOpenerParameters()
@covers ::getOpenerParameters
File
- core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryStateTest.php, line 367
Class
- MediaLibraryStateTest
- Tests the media library state value object.
Namespace
Drupal\Tests\media_library\KernelCode
public function testOpenerParameters() {
$state = MediaLibraryState::create('test', [
'file',
], 'file', -1, [
'foo' => 'baz',
]);
$this
->assertSame([
'foo' => 'baz',
], $state
->getOpenerParameters());
}