Skip to content

Commit 54ec0c3

Browse files
authored
Test 3
1 parent 7025584 commit 54ec0c3

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app/code/Magento/Search/Test/Unit/Model/PopularSearchTermsTest.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,25 +49,23 @@ protected function setUp()
4949
/**
5050
* Test isCacheableDataProvider method
5151
*
52-
* @param string $term
53-
* @param array $terms
54-
* @param $expected $terms
55-
*
5652
* @return void
5753
*/
5854
public function testIsCacheable()
5955
{
6056
$term = 'test1';
6157
$storeId = 1;
6258
$pageSize = 35;
63-
59+
6460
$this->scopeConfigMock->expects($this->once())->method('getValue')
6561
->with(
6662
PopularSearchTerms::XML_PATH_MAX_COUNT_CACHEABLE_SEARCH_TERMS,
6763
ScopeInterface::SCOPE_STORE,
6864
$storeId
6965
)->willReturn($pageSize);
70-
$this->queryCollectionMock->expects($this->exact(2))->method('isTopSearchResult')->with($term, $storeId, $pageSize)
66+
$this->queryCollectionMock->expects($this->exactly(2))
67+
->method('isTopSearchResult')
68+
->with($term, $storeId, $pageSize)
7169
->willReturn(true, false);
7270

7371
$this->assertTrue($this->popularSearchTerms->isCacheable($term, $storeId));

0 commit comments

Comments
 (0)