File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
app/code/Magento/Search/Test/Unit/Model Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -49,25 +49,23 @@ protected function setUp()
49
49
/**
50
50
* Test isCacheableDataProvider method
51
51
*
52
- * @param string $term
53
- * @param array $terms
54
- * @param $expected $terms
55
- *
56
52
* @return void
57
53
*/
58
54
public function testIsCacheable ()
59
55
{
60
56
$ term = 'test1 ' ;
61
57
$ storeId = 1 ;
62
58
$ pageSize = 35 ;
63
-
59
+
64
60
$ this ->scopeConfigMock ->expects ($ this ->once ())->method ('getValue ' )
65
61
->with (
66
62
PopularSearchTerms::XML_PATH_MAX_COUNT_CACHEABLE_SEARCH_TERMS ,
67
63
ScopeInterface::SCOPE_STORE ,
68
64
$ storeId
69
65
)->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 )
71
69
->willReturn (true , false );
72
70
73
71
$ this ->assertTrue ($ this ->popularSearchTerms ->isCacheable ($ term , $ storeId ));
You can’t perform that action at this time.
0 commit comments