示例#1
0
 /**
  * Creates a page instance and sets the test guy to use [[url]].
  * @param \Codeception\Actor $I the test guy instance
  * @param array $params the GET parameters to be used to generate [[url]]
  * @return static the page instance
  */
 public static function openBy($I, $params = [])
 {
     $page = new static($I);
     $I->amOnPage($page->getUrl($params));
     return $page;
 }