Skip to content

Commit 898d7a5

Browse files
AC-15635: PHPUnit 12 Upgrade | Fix integration and static failure
1 parent 68d4b48 commit 898d7a5

File tree

4 files changed

+44
-5
lines changed

4 files changed

+44
-5
lines changed

app/code/Magento/Catalog/Test/Unit/Helper/ProductExtensionInterfaceTestHelper.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ class ProductExtensionInterfaceTestHelper implements ProductExtensionInterface
3636
private $downloadableProductSamples = null;
3737
/** @var mixed */
3838
private $websiteIds = null;
39+
/** @var mixed */
40+
private $giftcardAmounts = null;
41+
/** @var mixed */
42+
private $testStockItem = null;
43+
/** @var mixed */
44+
private $testStockItemQty = null;
3945

4046
public function __construct()
4147
{
@@ -139,4 +145,37 @@ public function setWebsiteIds($websiteIds)
139145
$this->websiteIds = $websiteIds;
140146
return $this;
141147
}
148+
149+
public function getGiftcardAmounts()
150+
{
151+
return $this->giftcardAmounts;
152+
}
153+
154+
public function setGiftcardAmounts($giftcardAmounts)
155+
{
156+
$this->giftcardAmounts = $giftcardAmounts;
157+
return $this;
158+
}
159+
160+
public function getTestStockItem()
161+
{
162+
return $this->testStockItem;
163+
}
164+
165+
public function setTestStockItem($testStockItem)
166+
{
167+
$this->testStockItem = $testStockItem;
168+
return $this;
169+
}
170+
171+
public function getTestStockItemQty()
172+
{
173+
return $this->testStockItemQty;
174+
}
175+
176+
public function setTestStockItemQty($testStockItemQty)
177+
{
178+
$this->testStockItemQty = $testStockItemQty;
179+
return $this;
180+
}
142181
}

app/code/Magento/CatalogUrlRewriteGraphQl/Test/Unit/Model/Resolver/CategoryUrlSuffixTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
1313
use Magento\GraphQl\Model\Query\ContextExtensionInterface;
1414
use Magento\GraphQl\Model\Query\ContextInterface;
15-
use Magento\GraphQl\Test\Unit\Helper\ContextExtensionTestHelper;
15+
use Magento\GraphQl\Test\Unit\Helper\ContextExtensionInterfaceTestHelper;
1616
use Magento\Store\Api\Data\StoreInterface;
1717
use PHPUnit\Framework\MockObject\MockObject;
1818
use PHPUnit\Framework\TestCase;
@@ -64,7 +64,7 @@ protected function setUp(): void
6464
{
6565
$this->contextMock = $this->createMock(ContextInterface::class);
6666

67-
$this->contextExtensionMock = new ContextExtensionTestHelper();
67+
$this->contextExtensionMock = new ContextExtensionInterfaceTestHelper();
6868

6969
$this->storeMock = $this->createMock(StoreInterface::class);
7070

app/code/Magento/CatalogUrlRewriteGraphQl/Test/Unit/Model/Resolver/ProductUrlSuffixTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;
1313
use Magento\GraphQl\Model\Query\ContextExtensionInterface;
1414
use Magento\GraphQl\Model\Query\ContextInterface;
15-
use Magento\GraphQl\Test\Unit\Helper\ContextExtensionTestHelper;
15+
use Magento\GraphQl\Test\Unit\Helper\ContextExtensionInterfaceTestHelper;
1616
use Magento\Store\Api\Data\StoreInterface;
1717
use PHPUnit\Framework\MockObject\MockObject;
1818
use PHPUnit\Framework\TestCase;
@@ -64,7 +64,7 @@ protected function setUp(): void
6464
{
6565
$this->contextMock = $this->createMock(ContextInterface::class);
6666

67-
$this->contextExtensionMock = new ContextExtensionTestHelper();
67+
$this->contextExtensionMock = new ContextExtensionInterfaceTestHelper();
6868

6969
$this->storeMock = $this->createMock(StoreInterface::class);
7070

app/code/Magento/Eav/Test/Unit/Helper/AttributeGroupInterfaceTestHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ public function setAttributeGroupCode($value)
3434
$this->attributeGroupCode = $value;
3535
return $this;
3636
}
37-
}
37+
}

0 commit comments

Comments
 (0)