Skip to content

Commit 07b7227

Browse files
committed
MC-15295: fix static tests
1 parent 3412392 commit 07b7227

File tree

3 files changed

+17
-14
lines changed

3 files changed

+17
-14
lines changed

app/code/Magento/Newsletter/Test/Unit/Model/Queue/TransportBuilderTest.php

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
/**
3232
* Class TransportBuilderTest
33+
*
34+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
3335
*/
3436
class TransportBuilderTest extends TestCase
3537
{
@@ -157,12 +159,18 @@ public function testGetTransport(
157159
->willReturn($emailMessage);
158160

159161
$template = $this->createMock(Template::class);
160-
$template->expects($this->once())->method('setVars')->with($this->equalTo($vars))->will($this->returnSelf());
161-
$template->expects($this->once())->method('setOptions')->with($this->equalTo($options))->will($this->returnSelf());
162-
$template->expects($this->once())->method('getSubject')->willReturn('Email Subject');
163-
$template->expects($this->once())->method('setData')->with($this->equalTo($data))->will($this->returnSelf());
164-
$template->expects($this->once())->method('getProcessedTemplate')->with($vars)->willReturn($bodyText);
165-
$template->expects($this->once())->method('setTemplateFilter')->with($filter);
162+
$template->expects($this->once())->method('setVars')
163+
->with($this->equalTo($vars))->will($this->returnSelf());
164+
$template->expects($this->once())->method('setOptions')
165+
->with($this->equalTo($options))->will($this->returnSelf());
166+
$template->expects($this->once())->method('getSubject')
167+
->willReturn('Email Subject');
168+
$template->expects($this->once())->method('setData')
169+
->with($this->equalTo($data))->will($this->returnSelf());
170+
$template->expects($this->once())->method('getProcessedTemplate')
171+
->with($vars)->willReturn($bodyText);
172+
$template->expects($this->once())->method('setTemplateFilter')
173+
->with($filter);
166174

167175
$this->templateFactoryMock->expects($this->once())
168176
->method('get')

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
"zendframework/zend-json": "^2.6.1",
6969
"zendframework/zend-log": "^2.9.1",
7070
"zendframework/zend-mail": "^2.9.0",
71+
"zendframework/zend-mime": "^2.5.0",
7172
"zendframework/zend-modulemanager": "^2.7",
7273
"zendframework/zend-mvc": "~2.7.0",
7374
"zendframework/zend-serializer": "^2.7.2",

lib/internal/Magento/Framework/Mail/Exception/InvalidArgumentException.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11
<?php
22
/**
3-
* Copyright (c) 2019 TechDivision GmbH
4-
* All rights reserved
5-
*
6-
* This product includes proprietary software developed at TechDivision GmbH, Germany
7-
* For more information see https://www.techdivision.com/
8-
*
9-
* To obtain a valid license for using this software please contact us at
10-
* license@techdivision.com
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
115
*/
126
declare(strict_types=1);
137

0 commit comments

Comments
 (0)