Esempio n. 1
0
 /**
  * @test
  */
 public function getUidBounceAccount()
 {
     $this->assertNull($this->subject->getUidBounceAccount());
     $bounceAccount = $this->getMock('Ecodev\\Newsletter\\Domain\\Model\\BounceAccount', array('getUid'), array(), '', false);
     $bounceAccount->expects($this->once())->method('getUid')->will($this->returnValue(123));
     $this->subject->setBounceAccount($bounceAccount);
     $this->assertEquals(123, $this->subject->getUidBounceAccount());
 }
Esempio n. 2
0
 /**
  * @test
  */
 public function getUidBounceAccount()
 {
     $this->assertNull($this->subject->getUidBounceAccount());
     $bounceAccount = $this->getMock(\Ecodev\Newsletter\Domain\Model\BounceAccount::class, ['getUid'], [], '', false);
     $bounceAccount->expects($this->once())->method('getUid')->will($this->returnValue(123));
     $this->subject->setBounceAccount($bounceAccount);
     $this->assertSame(123, $this->subject->getUidBounceAccount());
 }