Skip to content

Commit c6b4536

Browse files
author
Mike Bijnsdorp
committed
Make module compatible with Magento 2.4
1 parent b635995 commit c6b4536

File tree

3 files changed

+2073
-1462
lines changed

3 files changed

+2073
-1462
lines changed

Test/Checker/Catalog/Product/UrlKey/DuplicateUrlKeyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class DuplicateUrlKeyTest extends TestCase
2121
/** @var ObjectManagerHelper */
2222
private $objectManagerHelper;
2323

24-
protected function setUp()
24+
protected function setUp(): void
2525
{
2626
$this->objectManagerHelper = new ObjectManagerHelper($this);
2727
}
@@ -56,6 +56,7 @@ function ($productData) use ($storeId) {
5656

5757
$collectionsPerStoreId = array_map(
5858
function ($productsData) {
59+
/** @var \PHPUnit\Framework\MockObject\MockObject $productCollectionMock */
5960
$productCollectionMock = $this->objectManagerHelper
6061
->getCollectionMock(ProductCollection::class, $productsData);
6162

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
],
1313
"require": {
1414
"php": "~7.0.0 || ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0",
15-
"magento/framework": "^100.1 || ^101.0 || ^102.0",
16-
"magento/module-backend": "^100.1 || ^101.0",
17-
"magento/module-catalog": "^101.0 || ^102.0 || ^103.0",
15+
"magento/framework": "^100.1 || ^101.0 || ^102.0 || ^103.0",
16+
"magento/module-backend": "^100.1 || ^101.0 || ^102.0",
17+
"magento/module-catalog": "^101.0 || ^102.0 || ^103.0 || ^104.0",
1818
"magento/module-cron": "^100.1",
1919
"magento/module-store": "^100.1 || ^101.0",
2020
"magento/module-ui": "^100.1 || ^101.0",
@@ -28,7 +28,7 @@
2828
"phpcompatibility/php-compatibility": "^9.2",
2929
"phpstan/extension-installer": "^1.0",
3030
"phpstan/phpstan": "^0.12.26",
31-
"phpunit/phpunit": "^7.5",
31+
"phpunit/phpunit": "^9.0",
3232
"vimeo/psalm": "^3.11"
3333
},
3434
"config": {

0 commit comments

Comments
 (0)