function MediaLibraryStateTest::testHashUnaffectedByOpenerParamOrder
Same name in other branches
- 9 core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryStateTest::testHashUnaffectedByOpenerParamOrder()
- 8.9.x core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryStateTest::testHashUnaffectedByOpenerParamOrder()
- 11.x core/modules/media_library/tests/src/Kernel/MediaLibraryStateTest.php \Drupal\Tests\media_library\Kernel\MediaLibraryStateTest::testHashUnaffectedByOpenerParamOrder()
Tests that hash is unaffected by opener parameter order.
File
-
core/
modules/ media_library/ tests/ src/ Kernel/ MediaLibraryStateTest.php, line 389
Class
- MediaLibraryStateTest
- Tests the media library state value object.
Namespace
Drupal\Tests\media_library\KernelCode
public function testHashUnaffectedByOpenerParamOrder() : void {
$state1 = MediaLibraryState::create('test', [
'file',
], 'file', -1, [
'foo' => 'baz',
'baz' => 'foo',
]);
$state2 = MediaLibraryState::create('test', [
'file',
], 'file', -1, [
'baz' => 'foo',
'foo' => 'baz',
]);
$this->assertSame($state1->getHash(), $state2->getHash());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.