/**
  * @covers Ebizmarts\MageMonkey\Model\Plugin\Subscriber::beforeSubscribeCustomerById
  */
 public function testBeforeSubscribeCustomerById()
 {
     $this->plugin->beforeSubscribeCustomerById($this->subscriberMock, 1);
     $this->helperMock->expects($this->exactly(2))->method('isDoubleOptInEnabled')->willReturn(true);
     $this->plugin->beforeSubscribeCustomerById($this->subscriberMock, 1);
     $this->helperMock->expects($this->once())->method('getMergeVars')->willReturn(['FNAME' => 'fname']);
     $this->plugin->beforeSubscribeCustomerById($this->subscriberMock, 1);
 }
 public function testAfterSubscribeCustomerById()
 {
     $subscriber = $this->getMockBuilder('\\Magento\\Newsletter\\Model\\Subscriber')->getMock();
     $subscriber->expects($this->once())->method('getStoreId')->willReturn('store_id');
     $subscriber->expects($this->once())->method('getCustomerId')->willReturn('customer_id');
     $subscriber->expects($this->once())->method('getSubscriberEmail')->willReturn('subscriber_email');
     $subscriber->expects($this->once())->method('getEmail')->willReturn('email');
     $this->plugin->afterSubscribeCustomerById($subscriber);
 }