File tree 3 files changed +9
-11
lines changed
dev/tests/integration/testsuite/Magento/Contact/Controller
3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,10 @@ public function __construct(
54
54
LoggerInterface $ logger = null
55
55
) {
56
56
parent ::__construct ($ context , $ contactsConfig );
57
- $ this ->context = $ context ;
58
- $ this ->mail = $ mail ;
57
+ $ this ->context = $ context ;
58
+ $ this ->mail = $ mail ;
59
59
$ this ->dataPersistor = $ dataPersistor ;
60
- $ this ->logger = $ logger ?:
61
- ObjectManager::getInstance ()->get (LoggerInterface::class);
60
+ $ this ->logger = $ logger ?: ObjectManager::getInstance ()->get (LoggerInterface::class);
62
61
}
63
62
64
63
/**
Original file line number Diff line number Diff line change @@ -47,18 +47,17 @@ public function __construct(
47
47
StateInterface $ inlineTranslation ,
48
48
StoreManagerInterface $ storeManager = null
49
49
) {
50
- $ this ->contactsConfig = $ contactsConfig ;
51
- $ this ->transportBuilder = $ transportBuilder ;
50
+ $ this ->contactsConfig = $ contactsConfig ;
51
+ $ this ->transportBuilder = $ transportBuilder ;
52
52
$ this ->inlineTranslation = $ inlineTranslation ;
53
- $ this ->storeManager = $ storeManager ?:
54
- ObjectManager::getInstance ()->get (StoreManagerInterface::class);
53
+ $ this ->storeManager = $ storeManager ?: ObjectManager::getInstance ()->get (StoreManagerInterface::class);
55
54
}
56
55
57
56
/**
58
57
* Send email from contact form
59
58
*
60
59
* @param string $replyTo
61
- * @param array $variables
60
+ * @param array $variables
62
61
* @return void
63
62
*/
64
63
public function send ($ replyTo , array $ variables )
@@ -72,7 +71,7 @@ public function send($replyTo, array $variables)
72
71
->setTemplateIdentifier ($ this ->contactsConfig ->emailTemplate ())
73
72
->setTemplateOptions (
74
73
[
75
- 'area ' => Area::AREA_FRONTEND ,
74
+ 'area ' => Area::AREA_FRONTEND ,
76
75
'store ' => $ this ->storeManager ->getStore ()->getId ()
77
76
]
78
77
)
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public function testPostAction()
24
24
$ this ->assertRedirect ($ this ->stringContains ('contact/index ' ));
25
25
$ this ->assertSessionMessages (
26
26
$ this ->contains (
27
- "Thanks for contacting us with your comments and questions. We' ll respond to you very soon. "
27
+ "Thanks for contacting us with your comments and questions. We' ll respond to you very soon. "
28
28
),
29
29
\Magento \Framework \Message \MessageInterface::TYPE_SUCCESS
30
30
);
You can’t perform that action at this time.
0 commit comments