File tree Expand file tree Collapse file tree 2 files changed +45
-1
lines changed
app/code/Magento/Braintree/Controller/Paypal
dev/tests/integration/testsuite/Magento/Braintree/Controller/Paypal Expand file tree Collapse file tree 2 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \Braintree \Model \Paypal \Helper \QuoteUpdater ;
14
14
use Magento \Framework \Exception \LocalizedException ;
15
15
use Magento \Framework \App \Action \HttpPostActionInterface ;
16
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
16
17
17
18
/**
18
19
* Class Review
19
20
*/
20
- class Review extends AbstractAction implements HttpPostActionInterface
21
+ class Review extends AbstractAction implements HttpPostActionInterface, HttpGetActionInterface
21
22
{
22
23
/**
23
24
* @var QuoteUpdater
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+ declare (strict_types=1 );
7
+
8
+ namespace Magento \Braintree \Controller \Paypal ;
9
+
10
+ use Magento \Framework \App \Action \HttpGetActionInterface ;
11
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
12
+ use Magento \TestFramework \TestCase \AbstractController ;
13
+
14
+ /**
15
+ * ReviewTest
16
+ */
17
+ class ReviewTest extends AbstractController
18
+ {
19
+ /**
20
+ * @var Review
21
+ */
22
+ private $ controller ;
23
+
24
+ /**
25
+ * @inheritdoc
26
+ */
27
+ protected function setUp ()
28
+ {
29
+ parent ::setUp ();
30
+
31
+ $ this ->controller = $ this ->_objectManager ->create (Review::class);
32
+ }
33
+
34
+ /**
35
+ * Test controller implements correct interfaces
36
+ *
37
+ */
38
+ public function testInterfaceImplementation ()
39
+ {
40
+ $ this ->assertInstanceOf (HttpGetActionInterface::class, $ this ->controller );
41
+ $ this ->assertInstanceOf (HttpPostActionInterface::class, $ this ->controller );
42
+ }
43
+ }
You can’t perform that action at this time.
0 commit comments