Skip to content

Commit 0940eb4

Browse files
author
Bohdan Korablov
committed
MAGETWO-52122: Bundle doesn't contain HTML files from lib/web/** folders
1 parent a4dd876 commit 0940eb4

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

lib/internal/Magento/Framework/View/Asset/Bundle/Manager.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,6 @@ protected function isValidType(LocalInterface $asset)
238238
return false;
239239
}
240240

241-
if ($type == self::ASSET_TYPE_HTML) {
242-
return $asset->getModule() !== '';
243-
}
244-
245241
return true;
246242
}
247243

lib/internal/Magento/Framework/View/Test/Unit/Asset/Bundle/ManagerTest.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,6 @@ public function testAddAssetWithInvalidType()
7777
$this->assertFalse($this->manager->addAsset($this->asset));
7878
}
7979

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-
9280
public function testAddAssetWithExcludedFile()
9381
{
9482
$dirRead = $this->getMockBuilder('Magento\Framework\Filesystem\Directory\ReadInterface')

0 commit comments

Comments
 (0)