Skip to content

Commit

Permalink
Merge pull request #42 from magento-epam/MAGETWO-66666
Browse files Browse the repository at this point in the history
MAGETWO-66666: Adding a product to cart from category page with an ex…
  • Loading branch information
vital-pantsialeyeu authored Aug 10, 2018
2 parents 9ecbb38 + 5c41898 commit 687807d
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 687807d

Please sign in to comment.