Skip to content

Commit 6f840bd

Browse files
committed
ACQE-8551: [Web API Automation] - AC-8424
- Apply PR feedback to new test code: modern fixtures, no single-use vars, -> assertions
1 parent 1deb86f commit 6f840bd

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/CheckoutEndToEndTest.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Magento\TestFramework\TestCase\GraphQlAbstract;
1919
use Magento\TestFramework\Fixture\Config;
2020
use Magento\TestFramework\Fixture\DataFixture;
21+
use Magento\Catalog\Test\Fixture\Product as ProductFixture;
2122

2223
/**
2324
* End to checkout tests for guest
@@ -94,8 +95,12 @@ public function testCheckoutWorkflow()
9495
* Validates that null values in street array are properly filtered and don't cause errors
9596
*/
9697
#[
97-
Config('default_store', 'checkout/options/guest_checkout', 1),
98-
DataFixture('Magento/Catalog/_files/products_with_layered_navigation_attribute.php')
98+
Config("checkout/options/guest_checkout", "1", "store", "default"),
99+
DataFixture(
100+
ProductFixture::class,
101+
['price' => 1, 'name' => 'simple1', 'sku' => 'simple1'],
102+
'simple1'
103+
)
99104
]
100105
public function testCheckoutWithNullSecondStreetInShippingAddress()
101106
{

0 commit comments

Comments
 (0)