@@ -70,7 +70,6 @@ protected function setUp()
70
70
71
71
public function testAddAssetWithInvalidType ()
72
72
{
73
- $ this ->assetConfig ->expects (self ::once ())->method ('isBundlingJsFiles ' )->willReturn (true );
74
73
$ this ->asset ->expects ($ this ->once ())
75
74
->method ('getContentType ' )
76
75
->willReturn ('testType ' );
@@ -80,7 +79,6 @@ public function testAddAssetWithInvalidType()
80
79
81
80
public function testAddAssetWithExcludedFile ()
82
81
{
83
- $ this ->assetConfig ->expects (self ::once ())->method ('isBundlingJsFiles ' )->willReturn (true );
84
82
$ dirRead = $ this ->getMockBuilder (\Magento \Framework \Filesystem \Directory \ReadInterface::class)
85
83
->disableOriginalConstructor ()
86
84
->getMock ();
@@ -124,7 +122,6 @@ public function testAddAssetWithExcludedFile()
124
122
125
123
public function testAddAssetWithExcludedDirectory ()
126
124
{
127
- $ this ->assetConfig ->expects (self ::once ())->method ('isBundlingJsFiles ' )->willReturn (true );
128
125
$ dirRead = $ this ->getMockBuilder (\Magento \Framework \Filesystem \Directory \ReadInterface::class)
129
126
->disableOriginalConstructor ()
130
127
->getMock ();
@@ -177,7 +174,6 @@ public function testAddAssetWithExcludedDirectory()
177
174
178
175
public function testAddAsset ()
179
176
{
180
- $ this ->assetConfig ->expects (self ::once ())->method ('isBundlingJsFiles ' )->willReturn (true );
181
177
$ dirRead = $ this ->getMockBuilder (\Magento \Framework \Filesystem \Directory \ReadInterface::class)
182
178
->disableOriginalConstructor ()
183
179
->getMock ();
@@ -221,27 +217,10 @@ public function testAddAsset()
221
217
$ this ->assertTrue ($ this ->manager ->addAsset ($ this ->asset ));
222
218
}
223
219
224
- public function testDoNotAddAssetIfBundlingDisabled ()
225
- {
226
- $ this ->assetConfig ->expects (self ::once ())->method ('isBundlingJsFiles ' )->willReturn (false );
227
- $ this ->asset ->expects (self ::never ())->method ('getContentType ' );
228
-
229
- $ this ->manager ->addAsset ($ this ->asset );
230
- }
231
-
232
220
public function testFlush ()
233
221
{
234
- $ this ->assetConfig ->expects (self ::once ())->method ('isBundlingJsFiles ' )->willReturn (true );
235
222
$ this ->bundle ->expects ($ this ->once ())
236
223
->method ('flush ' );
237
224
$ this ->manager ->flush ();
238
225
}
239
-
240
- public function testDoNoFlushIfBundlingDisabled ()
241
- {
242
- $ this ->assetConfig ->expects (self ::once ())->method ('isBundlingJsFiles ' )->willReturn (false );
243
- $ this ->bundle ->expects (self ::never ())->method ('flush ' );
244
-
245
- $ this ->manager ->flush ();
246
- }
247
226
}
0 commit comments