X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmedia%2Ftests%2Fsrc%2FFunctionalJavascript%2FMediaUiJavascriptTest.php;fp=web%2Fcore%2Fmodules%2Fmedia%2Ftests%2Fsrc%2FFunctionalJavascript%2FMediaUiJavascriptTest.php;h=a00a3c20100c03142cca6b3bb653e216c5847f69;hp=0116305771e73a2324dde62971dbf3bac0b72601;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/media/tests/src/FunctionalJavascript/MediaUiJavascriptTest.php b/web/core/modules/media/tests/src/FunctionalJavascript/MediaUiJavascriptTest.php index 011630577..a00a3c201 100644 --- a/web/core/modules/media/tests/src/FunctionalJavascript/MediaUiJavascriptTest.php +++ b/web/core/modules/media/tests/src/FunctionalJavascript/MediaUiJavascriptTest.php @@ -160,15 +160,15 @@ class MediaUiJavascriptTest extends MediaJavascriptTestBase { $loaded_media_type = $this->container->get('entity_type.manager') ->getStorage('media_type') ->load($this->testMediaType->id()); - $this->assertEquals($loaded_media_type->id(), $this->testMediaType->id()); - $this->assertEquals($loaded_media_type->label(), $new_name); - $this->assertEquals($loaded_media_type->getDescription(), $new_description); - $this->assertEquals($loaded_media_type->getSource()->getPluginId(), 'test'); - $this->assertEquals($loaded_media_type->getSource()->getConfiguration()['test_config_value'], 'This is new config value.'); + $this->assertSame($loaded_media_type->id(), $this->testMediaType->id()); + $this->assertSame($loaded_media_type->label(), $new_name); + $this->assertSame($loaded_media_type->getDescription(), $new_description); + $this->assertSame($loaded_media_type->getSource()->getPluginId(), 'test'); + $this->assertSame($loaded_media_type->getSource()->getConfiguration()['test_config_value'], 'This is new config value.'); $this->assertTrue($loaded_media_type->shouldCreateNewRevision()); $this->assertTrue($loaded_media_type->thumbnailDownloadsAreQueued()); $this->assertFalse($loaded_media_type->getStatus()); - $this->assertEquals($loaded_media_type->getFieldMap(), ['attribute_1' => 'name']); + $this->assertSame($loaded_media_type->getFieldMap(), ['attribute_1' => 'name']); // We need to clear the statically cached field definitions to account for // fields that have been created by API calls in this test, since they exist @@ -191,7 +191,7 @@ class MediaUiJavascriptTest extends MediaJavascriptTestBase { // Test that the system for preventing the deletion of media types works // (they cannot be deleted if there is media content of that type/bundle). - $media_type2 = $this->createMediaType(); + $media_type2 = $this->createMediaType('test'); $label2 = $media_type2->label(); $media = Media::create(['name' => 'lorem ipsum', 'bundle' => $media_type2->id()]); $media->save();