function MediaLibraryStateTest::testOpenerParameters

Same name in other branches
  1. 8.9.x core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryStateTest::testOpenerParameters()
  2. 10 core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryStateTest::testOpenerParameters()
  3. 11.x 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 374

Class

MediaLibraryStateTest
Tests the media library state value object.

Namespace

Drupal\Tests\media_library\Kernel

Code

public function testOpenerParameters() {
    $state = MediaLibraryState::create('test', [
        'file',
    ], 'file', -1, [
        'foo' => 'baz',
    ]);
    $this->assertSame([
        'foo' => 'baz',
    ], $state->getOpenerParameters());
}

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