@@ -326,7 +326,6 @@ |
||
| 326 | 326 | |
| 327 | 327 | /** |
| 328 | 328 | * @param $row |
| 329 | - * @param null $callback |
|
| 330 | 329 | */ |
| 331 | 330 | public function fputcsv($row) |
| 332 | 331 | { |
@@ -359,7 +359,7 @@ discard block |
||
| 359 | 359 | { |
| 360 | 360 | $config = $this->eccubeConfig; |
| 361 | 361 | |
| 362 | - return function ($value) use ($config) { |
|
| 362 | + return function($value) use ($config) { |
|
| 363 | 363 | return mb_convert_encoding( |
| 364 | 364 | (string) $value, $config['eccube_csv_export_encoding'], 'UTF-8' |
| 365 | 365 | ); |
@@ -499,7 +499,7 @@ discard block |
||
| 499 | 499 | if ($Conditions instanceof ArrayCollection) { |
| 500 | 500 | $Conditions = new ArrayCollection( |
| 501 | 501 | array_map( |
| 502 | - function ($Entity) use ($em) { |
|
| 502 | + function($Entity) use ($em) { |
|
| 503 | 503 | return $em->getRepository(get_class($Entity))->find($Entity->getId()); |
| 504 | 504 | }, $Conditions->toArray() |
| 505 | 505 | ) |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | /** |
| 58 | 58 | * Constructor. |
| 59 | 59 | * |
| 60 | - * @param Query|QueryBuilder $query A Doctrine ORM query or query builder. |
|
| 60 | + * @param Query $query A Doctrine ORM query or query builder. |
|
| 61 | 61 | * @param boolean $fetchJoinCollection Whether the query joins a collection (true by default). |
| 62 | 62 | */ |
| 63 | 63 | public function __construct($query, $fetchJoinCollection = true) |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | * |
| 17 | 17 | * @param Application $app |
| 18 | 18 | * |
| 19 | - * @return \Symfony\Component\HttpFoundation\Response |
|
| 19 | + * @return string |
|
| 20 | 20 | */ |
| 21 | 21 | public function testAdmin(Application $app) |
| 22 | 22 | { |
@@ -12,6 +12,9 @@ |
||
| 12 | 12 | |
| 13 | 13 | class DragAndDropBy extends WebDriverActions |
| 14 | 14 | { |
| 15 | + /** |
|
| 16 | + * @param \Facebook\WebDriver\Remote\RemoteWebElement $source |
|
| 17 | + */ |
|
| 15 | 18 | public function __construct(WebDriver $driver, $source, $x_offset, $y_offset) |
| 16 | 19 | { |
| 17 | 20 | parent::__construct($driver); |
@@ -14,6 +14,9 @@ |
||
| 14 | 14 | */ |
| 15 | 15 | private $timeout_in_second; |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param integer $timeout_in_second |
|
| 19 | + */ |
|
| 17 | 20 | function __construct($timeout_in_second) |
| 18 | 21 | { |
| 19 | 22 | $this->timeout_in_second = $timeout_in_second; |
@@ -48,12 +48,18 @@ discard block |
||
| 48 | 48 | return $this; |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param integer $rowNum |
|
| 53 | + */ |
|
| 51 | 54 | public function 一覧_編集($rowNum) |
| 52 | 55 | { |
| 53 | 56 | $this->tester->click("#search_form > div.c-contentsArea__cols > div > div > div.card.rounded.border-0.mb-4 > div > table > tbody > tr:nth-child(${rowNum}) > td:nth-child(2) > a"); |
| 54 | 57 | return $this; |
| 55 | 58 | } |
| 56 | 59 | |
| 60 | + /** |
|
| 61 | + * @param integer $rowNum |
|
| 62 | + */ |
|
| 57 | 63 | public function 一覧_削除($rowNum, $execute = true) |
| 58 | 64 | { |
| 59 | 65 | $this->tester->click("#search_form > div.c-contentsArea__cols > div > div > div.card.rounded.border-0.mb-4 > div > table > tbody > tr:nth-child(${rowNum}) > td.align-middle.pr-3 > div > div > a"); |
@@ -67,6 +73,9 @@ discard block |
||
| 67 | 73 | return $this; |
| 68 | 74 | } |
| 69 | 75 | |
| 76 | + /** |
|
| 77 | + * @param integer $rowNum |
|
| 78 | + */ |
|
| 70 | 79 | public function 一覧_仮会員メール再送($rowNum) |
| 71 | 80 | { |
| 72 | 81 | $this->tester->click(['xpath' => "//*[@id='search_form']//div/table/tbody/tr[${rowNum}]/td[6]/div/div[1]/a"]); |
@@ -92,6 +101,9 @@ discard block |
||
| 92 | 101 | $this->tester->click('#search_form > div.c-contentsArea__cols > div > div > div.row.justify-content-between.mb-2 > div.col-5.text-right > div:nth-child(2) > div > button:nth-child(2)'); |
| 93 | 102 | } |
| 94 | 103 | |
| 104 | + /** |
|
| 105 | + * @param integer $rowNum |
|
| 106 | + */ |
|
| 95 | 107 | public function 一覧_会員ID($rowNum) |
| 96 | 108 | { |
| 97 | 109 | return $this->tester->grabTextFrom("#search_form > div.c-contentsArea__cols > div > div > div.card.rounded.border-0.mb-4 > div > table > tbody > tr:nth-child(${rowNum}) > td.align-middle.pl-3"); |
@@ -19,6 +19,9 @@ discard block |
||
| 19 | 19 | parent::__construct($I); |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param \AcceptanceTester $I |
|
| 24 | + */ |
|
| 22 | 25 | public static function go($I) |
| 23 | 26 | { |
| 24 | 27 | $page = new self($I); |
@@ -26,6 +29,9 @@ discard block |
||
| 26 | 29 | return $page; |
| 27 | 30 | } |
| 28 | 31 | |
| 32 | + /** |
|
| 33 | + * @param \AcceptanceTester $I |
|
| 34 | + */ |
|
| 29 | 35 | public static function at($I) |
| 30 | 36 | { |
| 31 | 37 | $page = new self($I); |
@@ -46,36 +52,54 @@ discard block |
||
| 46 | 52 | return $this; |
| 47 | 53 | } |
| 48 | 54 | |
| 55 | + /** |
|
| 56 | + * @param string $value |
|
| 57 | + */ |
|
| 49 | 58 | public function 入力_姓($value) |
| 50 | 59 | { |
| 51 | 60 | $this->tester->fillField(['id' => 'shipping_name_name01'], $value); |
| 52 | 61 | return $this; |
| 53 | 62 | } |
| 54 | 63 | |
| 64 | + /** |
|
| 65 | + * @param string $value |
|
| 66 | + */ |
|
| 55 | 67 | public function 入力_名($value) |
| 56 | 68 | { |
| 57 | 69 | $this->tester->fillField(['id' => 'shipping_name_name02'], $value); |
| 58 | 70 | return $this; |
| 59 | 71 | } |
| 60 | 72 | |
| 73 | + /** |
|
| 74 | + * @param string $value |
|
| 75 | + */ |
|
| 61 | 76 | public function 入力_セイ($value) |
| 62 | 77 | { |
| 63 | 78 | $this->tester->fillField(['id' => 'shipping_kana_kana01'], $value); |
| 64 | 79 | return $this; |
| 65 | 80 | } |
| 66 | 81 | |
| 82 | + /** |
|
| 83 | + * @param string $value |
|
| 84 | + */ |
|
| 67 | 85 | public function 入力_メイ($value) |
| 68 | 86 | { |
| 69 | 87 | $this->tester->fillField(['id' => 'shipping_kana_kana02'], $value); |
| 70 | 88 | return $this; |
| 71 | 89 | } |
| 72 | 90 | |
| 91 | + /** |
|
| 92 | + * @param string $value |
|
| 93 | + */ |
|
| 73 | 94 | public function 入力_郵便番号1($value) |
| 74 | 95 | { |
| 75 | 96 | $this->tester->fillField(['id' => 'shipping_zip_zip01'], $value); |
| 76 | 97 | return $this; |
| 77 | 98 | } |
| 78 | 99 | |
| 100 | + /** |
|
| 101 | + * @param string $value |
|
| 102 | + */ |
|
| 79 | 103 | public function 入力_郵便番号2($value) |
| 80 | 104 | { |
| 81 | 105 | $this->tester->fillField(['id' => 'shipping_zip_zip02'], $value); |
@@ -88,48 +112,72 @@ discard block |
||
| 88 | 112 | return $this; |
| 89 | 113 | } |
| 90 | 114 | |
| 115 | + /** |
|
| 116 | + * @param string $value |
|
| 117 | + */ |
|
| 91 | 118 | public function 入力_市区町村名($value) |
| 92 | 119 | { |
| 93 | 120 | $this->tester->fillField(['id' => 'shipping_address_addr01'], $value); |
| 94 | 121 | return $this; |
| 95 | 122 | } |
| 96 | 123 | |
| 124 | + /** |
|
| 125 | + * @param string $value |
|
| 126 | + */ |
|
| 97 | 127 | public function 入力_番地_ビル名($value) |
| 98 | 128 | { |
| 99 | 129 | $this->tester->fillField(['id' => 'shipping_address_addr02'], $value); |
| 100 | 130 | return $this; |
| 101 | 131 | } |
| 102 | 132 | |
| 133 | + /** |
|
| 134 | + * @param string $value |
|
| 135 | + */ |
|
| 103 | 136 | public function 入力_電話番号1($value) |
| 104 | 137 | { |
| 105 | 138 | $this->tester->fillField(['id' => 'shipping_tel_tel01'], $value); |
| 106 | 139 | return $this; |
| 107 | 140 | } |
| 108 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $value |
|
| 144 | + */ |
|
| 109 | 145 | public function 入力_電話番号2($value) |
| 110 | 146 | { |
| 111 | 147 | $this->tester->fillField(['id' => 'shipping_tel_tel02'], $value); |
| 112 | 148 | return $this; |
| 113 | 149 | } |
| 114 | 150 | |
| 151 | + /** |
|
| 152 | + * @param string $value |
|
| 153 | + */ |
|
| 115 | 154 | public function 入力_電話番号3($value) |
| 116 | 155 | { |
| 117 | 156 | $this->tester->fillField(['id' => 'shipping_tel_tel03'], $value); |
| 118 | 157 | return $this; |
| 119 | 158 | } |
| 120 | 159 | |
| 160 | + /** |
|
| 161 | + * @param string $value |
|
| 162 | + */ |
|
| 121 | 163 | public function 入力_出荷伝票番号($value) |
| 122 | 164 | { |
| 123 | 165 | $this->tester->fillField(['id' => 'shipping_tracking_number'], $value); |
| 124 | 166 | return $this; |
| 125 | 167 | } |
| 126 | 168 | |
| 169 | + /** |
|
| 170 | + * @param string[] $value |
|
| 171 | + */ |
|
| 127 | 172 | public function 入力_配送業者($value) |
| 128 | 173 | { |
| 129 | 174 | $this->tester->selectOption(['id' => 'shipping_Delivery'], $value); |
| 130 | 175 | return $this; |
| 131 | 176 | } |
| 132 | 177 | |
| 178 | + /** |
|
| 179 | + * @param string $value |
|
| 180 | + */ |
|
| 133 | 181 | public function 入力_配達用メモ($value) |
| 134 | 182 | { |
| 135 | 183 | $this->tester->fillField(['id' => 'shipping_note'], $value); |
@@ -144,6 +192,9 @@ discard block |
||
| 144 | 192 | return $this; |
| 145 | 193 | } |
| 146 | 194 | |
| 195 | + /** |
|
| 196 | + * @param integer $rowNum |
|
| 197 | + */ |
|
| 147 | 198 | public function 商品検索結果_選択($rowNum) |
| 148 | 199 | { |
| 149 | 200 | $this->tester->click(['xpath' => "//*[@id='searchItemsResult']/table/tbody/tr[${rowNum}]/td[5]/i"]); |
@@ -58,6 +58,9 @@ discard block |
||
| 58 | 58 | return $this; |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | + /** |
|
| 62 | + * @param integer $rowNum |
|
| 63 | + */ |
|
| 61 | 64 | public function 一覧_編集($rowNum) |
| 62 | 65 | { |
| 63 | 66 | $this->tester->click(['xpath' => "//*[@id='form_bulk']/div[2]/div/table/tbody/tr[${rowNum}]/td[2]/a"]); |
@@ -117,6 +120,9 @@ discard block |
||
| 117 | 120 | $this->tester->click('#form_bulk #btn_bulk_mail'); |
| 118 | 121 | } |
| 119 | 122 | |
| 123 | + /** |
|
| 124 | + * @param integer $rowNum |
|
| 125 | + */ |
|
| 120 | 126 | public function 一覧_チェックボックス($rowNum) |
| 121 | 127 | { |
| 122 | 128 | $this->tester->click(['xpath' => "//*[@id='form_bulk']/div[2]/div/table/tbody/tr[${rowNum}]/td[1]/input"]); |
@@ -27,6 +27,9 @@ |
||
| 27 | 27 | class ShoppingLoginPage extends AbstractFrontPage |
| 28 | 28 | { |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param \AcceptanceTester $I |
|
| 32 | + */ |
|
| 30 | 33 | public static function at($I) |
| 31 | 34 | { |
| 32 | 35 | $page = new self($I); |