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 1313use Magento \Braintree \Model \Paypal \Helper \QuoteUpdater ;
1414use Magento \Framework \Exception \LocalizedException ;
1515use Magento \Framework \App \Action \HttpPostActionInterface ;
16+ use Magento \Framework \App \Action \HttpGetActionInterface ;
1617
1718/**
1819 * Class Review
1920 */
20- class Review extends AbstractAction implements HttpPostActionInterface
21+ class Review extends AbstractAction implements HttpPostActionInterface, HttpGetActionInterface
2122{
2223 /**
2324 * @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