Skip to content
Snippets Groups Projects
Commit 234153d3 authored by Yaroslav Onischenko's avatar Yaroslav Onischenko
Browse files

MAGETWO-36266: [GITHUB] Something went wrong with the subscription. #1157

parent 49f007a4
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Copyright © 2015 Magento. All rights reserved. * Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details. * See COPYING.txt for license details.
*/ */
namespace Magento\Newsletter\Model; namespace Magento\Newsletter\Test\Unit\Model;
class SubscriberTest extends \PHPUnit_Framework_TestCase class SubscriberTest extends \PHPUnit_Framework_TestCase
{ {
...@@ -62,7 +62,8 @@ class SubscriberTest extends \PHPUnit_Framework_TestCase ...@@ -62,7 +62,8 @@ class SubscriberTest extends \PHPUnit_Framework_TestCase
*/ */
protected $subscriber; protected $subscriber;
public function setUp() { public function setUp()
{
$this->newsletterData = $this->getMock('Magento\Newsletter\Helper\Data', [], [], '', false); $this->newsletterData = $this->getMock('Magento\Newsletter\Helper\Data', [], [], '', false);
$this->scopeConfig = $this->getMock('Magento\Framework\App\Config\ScopeConfigInterface'); $this->scopeConfig = $this->getMock('Magento\Framework\App\Config\ScopeConfigInterface');
$this->transportBuilder = $this->getMock( $this->transportBuilder = $this->getMock(
...@@ -107,7 +108,8 @@ class SubscriberTest extends \PHPUnit_Framework_TestCase ...@@ -107,7 +108,8 @@ class SubscriberTest extends \PHPUnit_Framework_TestCase
); );
$this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this); $this->objectManager = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
$this->subscriber = $this->objectManager->getObject('Magento\Newsletter\Model\Subscriber', $this->subscriber = $this->objectManager->getObject(
'Magento\Newsletter\Model\Subscriber',
[ [
'newsletterData' => $this->newsletterData, 'newsletterData' => $this->newsletterData,
'scopeConfig' => $this->scopeConfig, 'scopeConfig' => $this->scopeConfig,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment