Skip to content

Commit df2ee51

Browse files
author
Joan He
committed
Merge remote-tracking branch 'honey/MC-15325' into 2.3.1-qwerty-pr
2 parents b838e74 + 92b650d commit df2ee51

File tree

2 files changed

+45
-1
lines changed
  • app/code/Magento/Braintree/Controller/Paypal
  • dev/tests/integration/testsuite/Magento/Braintree/Controller/Paypal

2 files changed

+45
-1
lines changed

app/code/Magento/Braintree/Controller/Paypal/Review.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@
1313
use Magento\Braintree\Model\Paypal\Helper\QuoteUpdater;
1414
use Magento\Framework\Exception\LocalizedException;
1515
use 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
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
}

0 commit comments

Comments
 (0)