File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
api-functional/testsuite/Magento/GraphQl/Quote/Guest
integration/testsuite/Magento/Catalog/_files Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public function testAddProductToCartWithImage()
126
126
$ this ->assertEquals ('11 ' , $ cartItem ['prices ' ]['price ' ]['value ' ]);
127
127
$ this ->assertEquals ($ sku , $ cartItem ['product ' ]['sku ' ]);
128
128
$ expectedImageRegex = '/^https?:\/\/.+magento_image(_[0-9]+)?.jpg$/ ' ;
129
- $ this ->assertRegExp ($ expectedImageRegex , $ cartItem ['product ' ]['image ' ]['url ' ]);
129
+ $ this ->assertMatchesRegularExpression ($ expectedImageRegex , $ cartItem ['product ' ]['image ' ]['url ' ]);
130
130
}
131
131
132
132
/**
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+ use Magento \TestFramework \Workaround \Override \Fixture \Resolver ;
6
7
7
- require __DIR__ . ' / product_image.php ' ;
8
- require __DIR__ . ' / product_simple_without_custom_options.php ' ;
8
+ Resolver:: getInstance ()-> requireDataFixture ( ' Magento/Catalog/_files/ product_image.php ') ;
9
+ Resolver:: getInstance ()-> requireDataFixture ( ' Magento/Catalog/_files/ product_simple_without_custom_options.php ') ;
9
10
10
11
$ objectManager = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ();
11
12
$ productRepository = $ objectManager ->create (\Magento \Catalog \Api \ProductRepositoryInterface::class);
You can’t perform that action at this time.
0 commit comments