File tree Expand file tree Collapse file tree 5 files changed +5
-33
lines changed
Customer/Test/Unit/Model/Customer/Attribute/Backend
Theme/Test/Unit/Block/Adminhtml/Design/Config/Edit
lib/internal/Magento/Framework/Amqp/Test/Unit/Topology
setup/src/Magento/Setup/Module/Dependency Expand file tree Collapse file tree 5 files changed +5
-33
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,7 @@ class BillingTest extends TestCase
23
23
24
24
protected function setUp (): void
25
25
{
26
- $ logger = $ this ->getMockBuilder (LoggerInterface::class)
27
- ->getMock ();
28
- /** @var LoggerInterface $logger */
29
- $ this ->testable = new Billing ($ logger );
26
+ $ this ->testable = new Billing ();
30
27
}
31
28
32
29
public function testBeforeSave ()
Original file line number Diff line number Diff line change @@ -23,10 +23,7 @@ class ShippingTest extends TestCase
23
23
24
24
protected function setUp (): void
25
25
{
26
- $ logger = $ this ->getMockBuilder (LoggerInterface::class)
27
- ->getMock ();
28
- /** @var LoggerInterface $logger */
29
- $ this ->testable = new Shipping ($ logger );
26
+ $ this ->testable = new Shipping ();
30
27
}
31
28
32
29
public function testBeforeSave ()
Original file line number Diff line number Diff line change @@ -20,16 +20,9 @@ class SaveButtonTest extends TestCase
20
20
*/
21
21
protected $ block ;
22
22
23
- /**
24
- * @var Context|MockObject
25
- */
26
- protected $ context ;
27
-
28
23
protected function setUp (): void
29
24
{
30
- $ this ->initContext ();
31
-
32
- $ this ->block = new SaveButton ($ this ->context );
25
+ $ this ->block = new SaveButton ();
33
26
}
34
27
35
28
public function testGetButtonData ()
@@ -41,18 +34,4 @@ public function testGetButtonData()
41
34
$ this ->assertArrayHasKey ('data_attribute ' , $ result );
42
35
$ this ->assertIsArray ($ result ['data_attribute ' ]);
43
36
}
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
- }
58
37
}
Original file line number Diff line number Diff line change @@ -16,8 +16,7 @@ class QueueInstallerTest extends TestCase
16
16
{
17
17
public function testInstall ()
18
18
{
19
- $ bindingInstaller = $ this ->getMockForAbstractClass (QueueConfigItemInterface::class);
20
- $ model = new QueueInstaller ($ bindingInstaller );
19
+ $ model = new QueueInstaller ();
21
20
$ channel = $ this ->createMock (AMQPChannel::class);
22
21
23
22
$ queue = $ this ->getMockForAbstractClass (QueueConfigItemInterface::class);
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ public static function getCircularDependenciesReportBuilder()
95
95
self ::$ circularDependenciesReportBuilder = new CircularReport \Builder (
96
96
self ::getComposerJsonParser (),
97
97
new CircularReport \Writer (self ::getCsvWriter ()),
98
- new CircularTool ([], null )
98
+ new CircularTool ()
99
99
);
100
100
}
101
101
return self ::$ circularDependenciesReportBuilder ;
You can’t perform that action at this time.
0 commit comments