getRequest() 공개 메소드

Returns the current Request instance.
public getRequest ( ) : Symfony\Component\BrowserKit\Request
리턴 Symfony\Component\BrowserKit\Request A Request instance
예제 #1
0
 /**
  * {@inheritdoc}
  *
  * @return Request|null A Request instance
  */
 public function getRequest()
 {
     return parent::getRequest();
 }
예제 #2
0
 /**
  * @param $client
  * @param $position 0 based index position
  * @return mixed
  */
 private function getPageEditUriFromListByPosition(Client $client, $position)
 {
     $crawler = $client->getCrawler();
     if (strpos($client->getRequest()->getUri(), '/admin/cmf/page/page/list') === false) {
         $crawler = $client->request('GET', '/admin/cmf/page/page/list');
     }
     $this->assertTrue($client->getResponse()->isSuccessful());
     $rows = $crawler->filter('table tbody tr');
     return $rows->eq($position)->filter('td')->eq(1)->filter('a')->attr('href');
 }