/**
  * Add a mock standalone view to subject
  */
 protected function addMockViewToSubject()
 {
     $this->standaloneView = $this->getMock(\TYPO3\CMS\Fluid\View\StandaloneView::class, array(), array(), '', false);
     $this->request = $this->getMock(\TYPO3\CMS\Extbase\Mvc\Request::class);
     $this->standaloneView->expects($this->any())->method('getRequest')->will($this->returnValue($this->request));
     $this->subject->_set('view', $this->standaloneView);
 }
 /**
  * Add a mock standalone view to fixture
  */
 protected function addMockViewToFixture()
 {
     $this->standaloneView = $this->getMock('TYPO3\\CMS\\Fluid\\View\\StandaloneView');
     $this->request = $this->getMock('TYPO3\\CMS\\Extbase\\Mvc\\Request');
     $this->standaloneView->expects($this->any())->method('getRequest')->will($this->returnValue($this->request));
     $this->fixture->_set('view', $this->standaloneView);
 }