We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c70222d commit 28f5700Copy full SHA for 28f5700
dev/tests/integration/testsuite/Magento/Weee/_files/product_with_fpt_rollback.php
@@ -15,7 +15,7 @@
15
$product = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(\Magento\Catalog\Model\Product::class);
16
17
$product = $product->loadByAttribute('sku', 'simple-with-ftp');
18
-if ($product->getId()) {
+if ($product && $product->getId()) {
19
$product->delete();
20
}
21
0 commit comments