| 1 | <?php |
||
| 27 | class AbstractFrontPage |
||
| 28 | { |
||
| 29 | /** @var \AcceptanceTester $tester */ |
||
| 30 | protected $tester; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * AbstractAdminPage constructor. |
||
| 34 | */ |
||
| 35 | public function __construct(\AcceptanceTester $I) |
||
| 36 | { |
||
| 37 | $this->tester = $I; |
||
| 38 | } |
||
| 39 | |||
| 40 | /** |
||
| 41 | * ページに移動。 |
||
| 42 | * @param $url string URL |
||
| 43 | * @return $this |
||
| 44 | */ |
||
| 45 | protected function goPage($url) |
||
| 46 | { |
||
| 47 | $this->tester->amOnPage('/'.$url); |
||
| 48 | return $this; |
||
| 49 | } |
||
| 50 | |||
| 51 | } |