Skip to content

Commit

Permalink
MAGETWO-36266: [GITHUB] Something went wrong with the subscription. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaroslav Onischenko committed Apr 30, 2015
1 parent 49f007a commit 234153d
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Newsletter\Model;
namespace Magento\Newsletter\Test\Unit\Model;

class SubscriberTest extends \PHPUnit_Framework_TestCase
{
Expand Down Expand Up @@ -62,7 +62,8 @@ class SubscriberTest extends \PHPUnit_Framework_TestCase
*/
protected $subscriber;

public function setUp() {
public function setUp()
{
$this->newsletterData = $this->getMock('Magento\Newsletter\Helper\Data', [], [], '', false);
$this->scopeConfig = $this->getMock('Magento\Framework\App\Config\ScopeConfigInterface');
$this->transportBuilder = $this->getMock(
Expand Down Expand Up @@ -107,7 +108,8 @@ public function setUp() {
);
$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,
'scopeConfig' => $this->scopeConfig,
Expand Down

0 comments on commit 234153d

Please sign in to comment.