@@ -856,7 +856,7 @@ public function testProductsWithMultipleStores()
856
856
$ this ->_model ->importData ();
857
857
858
858
/** @var \Magento\Catalog\Model\Product $product */
859
- $ product = $ objectManager ->create (' Magento\Catalog\Model\Product ' );
859
+ $ product = $ objectManager ->create (\ Magento \Catalog \Model \Product::class );
860
860
$ id = $ product ->getIdBySku ('Configurable 03 ' );
861
861
$ product ->load ($ id );
862
862
$ this ->assertEquals ('1 ' , $ product ->getHasOptions ());
@@ -1276,7 +1276,7 @@ public function testProductWithLinks()
1276
1276
$ productId = $ resource ->getIdBySku ('simple4 ' );
1277
1277
/** @var \Magento\Catalog\Model\Product $product */
1278
1278
$ product = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
1279
- ' Magento\Catalog\Model\Product '
1279
+ \ Magento \Catalog \Model \Product::class
1280
1280
);
1281
1281
$ product ->load ($ productId );
1282
1282
$ productLinks = [
@@ -1326,7 +1326,7 @@ public function testExistingProductWithUrlKeys()
1326
1326
$ this ->_model ->importData ();
1327
1327
1328
1328
$ productRepository = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
1329
- ' Magento\Catalog\Api\ProductRepositoryInterface '
1329
+ \ Magento \Catalog \Api \ProductRepositoryInterface::class
1330
1330
);
1331
1331
foreach ($ products as $ productSku => $ productUrlKey ) {
1332
1332
$ this ->assertEquals ($ productUrlKey , $ productRepository ->get ($ productSku )->getUrlKey ());
@@ -1366,7 +1366,7 @@ public function testProductWithUseConfigSettings()
1366
1366
foreach ($ products as $ sku => $ manageStockUseConfig ) {
1367
1367
/** @var \Magento\CatalogInventory\Model\StockRegistry $stockRegistry */
1368
1368
$ stockRegistry = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()->create (
1369
- ' Magento\CatalogInventory\Model\StockRegistry '
1369
+ \ Magento \CatalogInventory \Model \StockRegistry::class
1370
1370
);
1371
1371
$ stockItem = $ stockRegistry ->getStockItemBySku ($ sku );
1372
1372
$ this ->assertEquals ($ manageStockUseConfig , $ stockItem ->getUseConfigManageStock ());
0 commit comments