Skip to content

Commit 4355c8c

Browse files
committed
Merge remote-tracking branch 'origin/MC-29405' into 2.4-develop-pr97
2 parents 6cb5111 + 4ebee96 commit 4355c8c

File tree

5 files changed

+5
-38
lines changed

5 files changed

+5
-38
lines changed

app/code/Magento/Customer/Test/Unit/Model/Customer/Attribute/Backend/BillingTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Magento\Eav\Model\Entity\Attribute\AbstractAttribute;
1313
use Magento\Framework\DataObject;
1414
use PHPUnit\Framework\TestCase;
15-
use Psr\Log\LoggerInterface;
1615

1716
class BillingTest extends TestCase
1817
{
@@ -23,10 +22,7 @@ class BillingTest extends TestCase
2322

2423
protected function setUp(): void
2524
{
26-
$logger = $this->getMockBuilder(LoggerInterface::class)
27-
->getMock();
28-
/** @var LoggerInterface $logger */
29-
$this->testable = new Billing($logger);
25+
$this->testable = new Billing();
3026
}
3127

3228
public function testBeforeSave()

app/code/Magento/Customer/Test/Unit/Model/Customer/Attribute/Backend/ShippingTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use Magento\Eav\Model\Entity\Attribute\AbstractAttribute;
1313
use Magento\Framework\DataObject;
1414
use PHPUnit\Framework\TestCase;
15-
use Psr\Log\LoggerInterface;
1615

1716
class ShippingTest extends TestCase
1817
{
@@ -23,10 +22,7 @@ class ShippingTest extends TestCase
2322

2423
protected function setUp(): void
2524
{
26-
$logger = $this->getMockBuilder(LoggerInterface::class)
27-
->getMock();
28-
/** @var LoggerInterface $logger */
29-
$this->testable = new Shipping($logger);
25+
$this->testable = new Shipping();
3026
}
3127

3228
public function testBeforeSave()

app/code/Magento/Theme/Test/Unit/Block/Adminhtml/Design/Config/Edit/SaveButtonTest.php

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
77

88
namespace Magento\Theme\Test\Unit\Block\Adminhtml\Design\Config\Edit;
99

10-
use Magento\Backend\Block\Widget\Context;
11-
use Magento\Framework\UrlInterface;
1210
use Magento\Theme\Block\Adminhtml\Design\Config\Edit\SaveButton;
13-
use PHPUnit\Framework\MockObject\MockObject;
1411
use PHPUnit\Framework\TestCase;
1512

1613
class SaveButtonTest extends TestCase
@@ -20,16 +17,9 @@ class SaveButtonTest extends TestCase
2017
*/
2118
protected $block;
2219

23-
/**
24-
* @var Context|MockObject
25-
*/
26-
protected $context;
27-
2820
protected function setUp(): void
2921
{
30-
$this->initContext();
31-
32-
$this->block = new SaveButton($this->context);
22+
$this->block = new SaveButton();
3323
}
3424

3525
public function testGetButtonData()
@@ -41,18 +31,4 @@ public function testGetButtonData()
4131
$this->assertArrayHasKey('data_attribute', $result);
4232
$this->assertIsArray($result['data_attribute']);
4333
}
44-
45-
protected function initContext()
46-
{
47-
$this->urlBuilder = $this->getMockBuilder(UrlInterface::class)
48-
->disableOriginalConstructor()
49-
->getMockForAbstractClass();
50-
51-
$this->context = $this->getMockBuilder(Context::class)
52-
->disableOriginalConstructor()
53-
->getMock();
54-
$this->context->expects($this->any())
55-
->method('getUrlBuilder')
56-
->willReturn($this->urlBuilder);
57-
}
5834
}

lib/internal/Magento/Framework/Amqp/Test/Unit/Topology/QueueInstallerTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ class QueueInstallerTest extends TestCase
1616
{
1717
public function testInstall()
1818
{
19-
$bindingInstaller = $this->getMockForAbstractClass(QueueConfigItemInterface::class);
20-
$model = new QueueInstaller($bindingInstaller);
19+
$model = new QueueInstaller();
2120
$channel = $this->createMock(AMQPChannel::class);
2221

2322
$queue = $this->getMockForAbstractClass(QueueConfigItemInterface::class);

setup/src/Magento/Setup/Module/Dependency/ServiceLocator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static function getCircularDependenciesReportBuilder()
9595
self::$circularDependenciesReportBuilder = new CircularReport\Builder(
9696
self::getComposerJsonParser(),
9797
new CircularReport\Writer(self::getCsvWriter()),
98-
new CircularTool([], null)
98+
new CircularTool()
9999
);
100100
}
101101
return self::$circularDependenciesReportBuilder;

0 commit comments

Comments
 (0)