@@ -19,8 +19,8 @@ |
||
19 | 19 | use Eccube\Entity\Plugin; |
20 | 20 | use Eccube\Entity\PluginEventHandler; |
21 | 21 | use Eccube\Exception\PluginException; |
22 | -use Eccube\Form\Type\Admin\CaptchaType; |
|
23 | 22 | use Eccube\Form\Type\Admin\AuthenticationType; |
23 | +use Eccube\Form\Type\Admin\CaptchaType; |
|
24 | 24 | use Eccube\Form\Type\Admin\PluginLocalInstallType; |
25 | 25 | use Eccube\Form\Type\Admin\PluginManagementType; |
26 | 26 | use Eccube\Repository\BaseInfoRepository; |
@@ -15,6 +15,9 @@ discard block |
||
15 | 15 | |
16 | 16 | class ProductListPage extends AbstractFrontPage |
17 | 17 | { |
18 | + /** |
|
19 | + * @param \AcceptanceTester $I |
|
20 | + */ |
|
18 | 21 | public static function at($I) |
19 | 22 | { |
20 | 23 | $page = new self($I); |
@@ -28,6 +31,9 @@ discard block |
||
28 | 31 | parent::__construct($I); |
29 | 32 | } |
30 | 33 | |
34 | + /** |
|
35 | + * @param integer $num |
|
36 | + */ |
|
31 | 37 | public function 表示件数設定($num) |
32 | 38 | { |
33 | 39 | $this->tester->selectOption(['css' => "select[name = 'disp_number']"], "${num}件"); |
@@ -35,6 +41,9 @@ discard block |
||
35 | 41 | return $this; |
36 | 42 | } |
37 | 43 | |
44 | + /** |
|
45 | + * @param string $sort |
|
46 | + */ |
|
38 | 47 | public function 表示順設定($sort) |
39 | 48 | { |
40 | 49 | $this->tester->selectOption(['css' => "select[name = 'orderby']"], $sort); |
@@ -49,6 +58,11 @@ discard block |
||
49 | 58 | return count($products); |
50 | 59 | } |
51 | 60 | |
61 | + /** |
|
62 | + * @param integer $index |
|
63 | + * @param string[] $category1 |
|
64 | + * @param string[] $category2 |
|
65 | + */ |
|
52 | 66 | public function カートに入れる($index, $num = 1, $category1 = null, $category2 = null) |
53 | 67 | { |
54 | 68 | $this->tester->fillField(['css' => "ul.ec-shelfGrid li.ec-shelfGrid__item:nth-child(${index}) form input[name='quantity']"], $num); |