Skip to content

Commit

Permalink
Merge pull request magento#3883 from magento-arcticfoxes/pr
Browse files Browse the repository at this point in the history
[2.3.1-release] Bug Fixes
  • Loading branch information
joanhe authored Mar 12, 2019
2 parents bd09670 + 0d892ae commit 4e62277
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/code/Magento/Braintree/Controller/Paypal/Review.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
use Magento\Braintree\Model\Paypal\Helper\QuoteUpdater;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\App\Action\HttpGetActionInterface;

/**
* Class Review
*/
class Review extends AbstractAction implements HttpPostActionInterface
class Review extends AbstractAction implements HttpPostActionInterface, HttpGetActionInterface
{
/**
* @var QuoteUpdater
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\Braintree\Controller\Paypal;

use Magento\Framework\App\Action\HttpGetActionInterface;
use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\TestFramework\TestCase\AbstractController;

/**
* ReviewTest
*/
class ReviewTest extends AbstractController
{
/**
* @var Review
*/
private $controller;

/**
* @inheritdoc
*/
protected function setUp()
{
parent::setUp();

$this->controller = $this->_objectManager->create(Review::class);
}

/**
* Test controller implements correct interfaces
*
*/
public function testInterfaceImplementation()
{
$this->assertInstanceOf(HttpGetActionInterface::class, $this->controller);
$this->assertInstanceOf(HttpPostActionInterface::class, $this->controller);
}
}

0 comments on commit 4e62277

Please sign in to comment.