/**
  * @test
  * @return void
  */
 public function thenChildIsCalledWithCorrectArguments()
 {
     $_GET['tx_news_pi1']['news'] = '789';
     $newsItem = new News();
     $newsItem->_setProperty('uid', 789);
     $this->viewHelper->expects($this->once())->method('renderThenChild');
     $this->viewHelper->render($newsItem);
 }
Ejemplo n.º 2
0
 /**
  * @test
  * @return void
  */
 public function elseChildIsCalledWithWrongGetArguments()
 {
     $_GET['tx_news_pi1']['news'] = 456;
     $newsItem = new News();
     $newsItem->_setProperty('uid', 123);
     $this->viewHelper->expects($this->once())->method('renderElseChild');
     $this->viewHelper->render($newsItem);
 }