13
13
use Magento \CatalogGraphQl \Model \Resolver \Products \Query \Search ;
14
14
use Magento \CatalogGraphQl \Model \Resolver \Products \Query \Search \QueryPopularity ;
15
15
use Magento \CatalogGraphQl \Model \Resolver \Products \SearchResultFactory ;
16
+ use Magento \CatalogGraphQl \Model \Resolver \Products \Query \Suggestions ;
16
17
use Magento \Framework \Api \Search \SearchCriteriaInterface ;
17
18
use Magento \Framework \Api \Search \SearchResultInterface ;
18
19
use Magento \Framework \GraphQl \Query \Resolver \ArgumentsProcessorInterface ;
21
22
use Magento \GraphQl \Model \Query \ContextInterface ;
22
23
use Magento \Search \Api \SearchInterface ;
23
24
use Magento \Search \Model \Search \PageSizeProvider ;
24
- use Magento \Store \Api \Data \StoreInterface ;
25
25
use PHPUnit \Framework \MockObject \MockObject ;
26
26
use PHPUnit \Framework \TestCase ;
27
27
@@ -67,6 +67,11 @@ class SearchTest extends TestCase
67
67
*/
68
68
private $ searchCriteriaBuilder ;
69
69
70
+ /**
71
+ * @var Suggestions|MockObject
72
+ */
73
+ private $ suggestions ;
74
+
70
75
/**
71
76
* @var QueryPopularity|MockObject
72
77
*/
@@ -104,6 +109,9 @@ protected function setUp(): void
104
109
$ this ->searchCriteriaBuilder = $ this ->getMockBuilder (SearchCriteriaBuilder::class)
105
110
->disableOriginalConstructor ()
106
111
->getMock ();
112
+ $ this ->suggestions = $ this ->getMockBuilder (Suggestions::class)
113
+ ->disableOriginalConstructor ()
114
+ ->getMock ();
107
115
$ this ->queryPopularity = $ this ->getMockBuilder (QueryPopularity::class)
108
116
->disableOriginalConstructor ()
109
117
->getMock ();
@@ -115,6 +123,7 @@ protected function setUp(): void
115
123
$ this ->productsProvider ,
116
124
$ this ->searchCriteriaBuilder ,
117
125
$ this ->argsSelection ,
126
+ $ this ->suggestions ,
118
127
$ this ->queryPopularity
119
128
);
120
129
}
0 commit comments