File tree 2 files changed +7
-0
lines changed
lib/internal/Magento/Framework/View 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -553,6 +553,7 @@ public function getAdditionalMetaAssets()
553
553
{
554
554
return $ this ->additionalMetaAssets ;
555
555
}
556
+
556
557
/**
557
558
* Adjust metadata content url
558
559
*
Original file line number Diff line number Diff line change @@ -369,12 +369,18 @@ public function testAddRss()
369
369
$ this ->assertInstanceOf (\Magento \Framework \View \Page \Config::class, $ this ->model ->addRss ($ title , $ href ));
370
370
}
371
371
372
+ /**
373
+ * Testing case for getting meta asset URL with URL in content
374
+ */
372
375
public function testGetMetaAssetUrlWithUrlInContent ()
373
376
{
374
377
$ this ->assetRepo ->expects ($ this ->never ())->method ('getUrl ' );
375
378
$ this ->assertEquals ('http://test.com/image.png ' , $ this ->model ->getMetaAssetUrl ('http://test.com/image.png ' ));
376
379
}
377
380
381
+ /**
382
+ * Testing case for getting meta asset URL without URL in content
383
+ */
378
384
public function testGetMetaAssetUrlWithoutUrlInContent ()
379
385
{
380
386
$ this ->assetRepo ->expects ($ this ->once ())->method ('getUrl ' )->with ('image.png ' )->will (
You can’t perform that action at this time.
0 commit comments