/** * @test */ public function getUidRecipientList() { $this->assertNull($this->subject->getUidRecipientList()); $recipientList = $this->getMock('Ecodev\\Newsletter\\Domain\\Model\\RecipientList\\BeUsers', array('getUid'), array(), '', false); $recipientList->expects($this->once())->method('getUid')->will($this->returnValue(123)); $this->subject->setRecipientList($recipientList); $this->assertEquals(123, $this->subject->getUidRecipientList()); }
/** * @test */ public function getUidRecipientList() { $this->assertNull($this->subject->getUidRecipientList()); $recipientList = $this->getMock(\Ecodev\Newsletter\Domain\Model\RecipientList\BeUsers::class, ['getUid'], [], '', false); $recipientList->expects($this->once())->method('getUid')->will($this->returnValue(123)); $this->subject->setRecipientList($recipientList); $this->assertSame(123, $this->subject->getUidRecipientList()); }