Skip to content

Commit

Permalink
MAGETWO-66666: Adding a product to cart from category page with an ex…
Browse files Browse the repository at this point in the history
…pired session does not allow product to be added

- Add unit test in case Expired session
  • Loading branch information
vital-pantsialeyeu committed Aug 10, 2018
1 parent 601b2f6 commit 5c41898
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,18 @@ class AddTest extends \PHPUnit\Framework\TestCase
*/
private $messageManager;

/**
* Init mocks for tests.
*
* @return void
*/
public function setUp()
{
$this->formKeyValidator = $this->getMockBuilder(\Magento\Framework\Data\Form\FormKey\Validator::class)
->disableOriginalConstructor()->getMock();
$this->resultRedirectFactory =
$this->getMockBuilder(\Magento\Framework\Controller\Result\RedirectFactory::class)
->disableOriginalConstructor()->getMock();
->disableOriginalConstructor()->getMock();
$this->request = $this->getMockBuilder(\Magento\Framework\App\RequestInterface::class)
->disableOriginalConstructor()->getmock();
$this->messageManager = $this->getMockBuilder(\Magento\Framework\Message\ManagerInterface::class)
Expand Down

0 comments on commit 5c41898

Please sign in to comment.