File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -670,6 +670,35 @@ public function testProductPrices()
670
670
$ this ->assertBaseFields ($ secondProduct , $ response ['products ' ]['items ' ][1 ]);
671
671
}
672
672
673
+ /**
674
+ * @magentoApiDataFixture Magento/Catalog/_files/products_for_search.php
675
+ */
676
+ public function testProductFilterNfinset ()
677
+ {
678
+ $ productSku = 'search_product_1 ' ;
679
+
680
+ $ query = <<<QUERY
681
+ {
682
+ products(filter: {sku: {nfinset: [" $ productSku"]}})
683
+ {
684
+ items {
685
+ id
686
+ name
687
+ sku
688
+ }
689
+ }
690
+ }
691
+ QUERY ;
692
+
693
+ $ response = $ this ->graphQlQuery ($ query );
694
+
695
+ /**
696
+ * @var ProductRepositoryInterface $productRepository
697
+ */
698
+ $ productRepository = ObjectManager::getInstance ()->get (ProductRepositoryInterface::class);
699
+ $ this ->assertNotEquals ($ response ['products ' ]['items ' ][0 ]['sku ' ], $ productSku );
700
+ }
701
+
673
702
/**
674
703
* @param ProductInterface $product
675
704
* @param array $actualResponse
You can’t perform that action at this time.
0 commit comments