Esempio n. 1
0
 /**
  * @test
  */
 public function renderReturnsFirstResultOfGetMailTo()
 {
     #$GLOBALS['TSFE']->cObj->expects($this->once())->method('getMailTo')->with('*****@*****.**', '*****@*****.**')->will($this->returnValue(array('mailto:some@email.tld', '*****@*****.**')));
     $this->viewHelper->initialize();
     $actualResult = $this->viewHelper->render('*****@*****.**');
     $this->assertEquals('mailto:some@email.tld', $actualResult);
 }
 /**
  * @test
  */
 public function renderPrependsEmailWithMailto()
 {
     $this->viewHelper->initialize();
     $actualResult = $this->viewHelper->render('*****@*****.**');
     $this->assertEquals('mailto:some@email.tld', $actualResult);
 }