File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed
lib/internal/Magento/Framework/View Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -238,10 +238,6 @@ protected function isValidType(LocalInterface $asset)
238
238
return false ;
239
239
}
240
240
241
- if ($ type == self ::ASSET_TYPE_HTML ) {
242
- return $ asset ->getModule () !== '' ;
243
- }
244
-
245
241
return true ;
246
242
}
247
243
Original file line number Diff line number Diff line change @@ -77,18 +77,6 @@ public function testAddAssetWithInvalidType()
77
77
$ this ->assertFalse ($ this ->manager ->addAsset ($ this ->asset ));
78
78
}
79
79
80
- public function testAddAssetWithHtmlTypeAndWithoutModule ()
81
- {
82
- $ this ->asset ->expects ($ this ->once ())
83
- ->method ('getContentType ' )
84
- ->willReturn ('html ' );
85
- $ this ->asset ->expects ($ this ->once ())
86
- ->method ('getModule ' )
87
- ->willReturn ('' );
88
-
89
- $ this ->assertFalse ($ this ->manager ->addAsset ($ this ->asset ));
90
- }
91
-
92
80
public function testAddAssetWithExcludedFile ()
93
81
{
94
82
$ dirRead = $ this ->getMockBuilder ('Magento\Framework\Filesystem\Directory\ReadInterface ' )
You can’t perform that action at this time.
0 commit comments