Ejemplo n.º 1
0
 public function testGetLifetimeValue()
 {
     $expectedResult = 12.33;
     $account = $this->getMock('OroCRM\\Bundle\\AccountBundle\\Entity\\Account');
     $channel = $this->getMock('OroCRM\\Bundle\\ChannelBundle\\Entity\\Channel');
     $this->provider->expects($this->once())->method('getAccountLifeTimeValue')->with($this->equalTo($account), $this->equalTo($channel))->will($this->returnValue($expectedResult));
     $this->assertSame($expectedResult, $this->extension->getLifetimeValue($account, $channel));
 }