Skip to content

Commit 693507f

Browse files
author
Mateusz Krzeszowiak
committed
Fix static tests
1 parent 27805df commit 693507f

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

app/code/Magento/Theme/Test/Unit/Controller/Result/JsFooterPluginTest.php

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ public function testBeforeSendResponse($content, $isSetFlag, $result): void
129129
public function ifGetContentIsNotAStringDataProvider(): array
130130
{
131131
return [
132-
'empty_array' => [
133-
'content' => []
134-
],
135132
'null' => [
136133
'content' => null
137134
]
@@ -151,13 +148,8 @@ public function testBeforeSendResponseIfGetContentIsNotAString($content): void
151148
->method('getContent')
152149
->willReturn($content);
153150

154-
$this->scopeConfigMock->expects($this->never())
155-
->method('isSetFlag')
156-
->with(
157-
self::STUB_XML_PATH_DEV_MOVE_JS_TO_BOTTOM,
158-
ScopeInterface::SCOPE_STORE
159-
)
160-
->willReturn(false);
151+
$this->httpMock->expects($this->never())
152+
->method('setContent');
161153

162154
$this->plugin->beforeSendResponse($this->httpMock);
163155
}

0 commit comments

Comments
 (0)