/** * @covers Ebizmarts\MageMonkey\Model\Plugin\Subscriber::beforeUnsubscribeCustomerById */ public function testBeforeUnsubscribeCustomerById() { $this->subscriberMock->expects($this->once())->method('loadByCustomerId')->willReturn($this->subscriberMock); $this->subscriberMock->expects($this->exactly(2))->method('getMagemonkeyId')->willReturn(1); $this->plugin->beforeUnsubscribeCustomerById($this->subscriberMock, 1); }