1313use Magento \CatalogGraphQl \Model \Resolver \Products \Query \Search ;
1414use Magento \CatalogGraphQl \Model \Resolver \Products \Query \Search \QueryPopularity ;
1515use Magento \CatalogGraphQl \Model \Resolver \Products \SearchResultFactory ;
16+ use Magento \CatalogGraphQl \Model \Resolver \Products \Query \Suggestions ;
1617use Magento \Framework \Api \Search \SearchCriteriaInterface ;
1718use Magento \Framework \Api \Search \SearchResultInterface ;
1819use Magento \Framework \GraphQl \Query \Resolver \ArgumentsProcessorInterface ;
2122use Magento \GraphQl \Model \Query \ContextInterface ;
2223use Magento \Search \Api \SearchInterface ;
2324use Magento \Search \Model \Search \PageSizeProvider ;
24- use Magento \Store \Api \Data \StoreInterface ;
2525use PHPUnit \Framework \MockObject \MockObject ;
2626use PHPUnit \Framework \TestCase ;
2727
@@ -67,6 +67,11 @@ class SearchTest extends TestCase
6767 */
6868 private $ searchCriteriaBuilder ;
6969
70+ /**
71+ * @var Suggestions|MockObject
72+ */
73+ private $ suggestions ;
74+
7075 /**
7176 * @var QueryPopularity|MockObject
7277 */
@@ -104,6 +109,9 @@ protected function setUp(): void
104109 $ this ->searchCriteriaBuilder = $ this ->getMockBuilder (SearchCriteriaBuilder::class)
105110 ->disableOriginalConstructor ()
106111 ->getMock ();
112+ $ this ->suggestions = $ this ->getMockBuilder (Suggestions::class)
113+ ->disableOriginalConstructor ()
114+ ->getMock ();
107115 $ this ->queryPopularity = $ this ->getMockBuilder (QueryPopularity::class)
108116 ->disableOriginalConstructor ()
109117 ->getMock ();
@@ -115,6 +123,7 @@ protected function setUp(): void
115123 $ this ->productsProvider ,
116124 $ this ->searchCriteriaBuilder ,
117125 $ this ->argsSelection ,
126+ $ this ->suggestions ,
118127 $ this ->queryPopularity
119128 );
120129 }
0 commit comments