Skip to content

Commit ee0bd1c

Browse files
committed
MAGETWO-89458: Cover changed and new logic with automated tests
- fixed failing webapi test
1 parent 09e1ecf commit ee0bd1c

File tree

1 file changed

+33
-24
lines changed

1 file changed

+33
-24
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Catalog/ProductSearchTest.php

Lines changed: 33 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -792,32 +792,41 @@ public function testProductQueryUsingFromAndToFilterInput()
792792
$query
793793
= <<<QUERY
794794
{
795-
products(filter: { price:{from:"5" to:"20"} }) {
796-
total_count
797-
items{
798-
attribute_set_id
799-
sku
800-
name
801-
price{
802-
minimalPrice{
803-
amount{
804-
value
805-
currency
806-
}
795+
products(
796+
filter: {
797+
price:{
798+
from:"5" to:"20"
799+
}
807800
}
808-
maximalPrice{
809-
amount{
810-
value
811-
currency
812-
}
801+
sort: {
802+
sku: DESC
813803
}
814-
}
815-
type_id
816-
...on PhysicalProductInterface{
817-
weight
818-
}
819-
}
820-
}
804+
) {
805+
total_count
806+
items {
807+
attribute_set_id
808+
sku
809+
name
810+
price {
811+
minimalPrice {
812+
amount {
813+
value
814+
currency
815+
}
816+
}
817+
maximalPrice {
818+
amount {
819+
value
820+
currency
821+
}
822+
}
823+
}
824+
type_id
825+
...on PhysicalProductInterface {
826+
weight
827+
}
828+
}
829+
}
821830
}
822831
QUERY;
823832

0 commit comments

Comments
 (0)