@@ -377,7 +377,7 @@ |
||
| 377 | 377 | |
| 378 | 378 | $findPlugins = Fixtures::get('findPlugins'); |
| 379 | 379 | $Plugins = $findPlugins(); |
| 380 | - if (is_array($Plugins) && count($Plugins) > 0 ) { |
|
| 380 | + if (is_array($Plugins) && count($Plugins) > 0) { |
|
| 381 | 381 | $I->getScenario()->skip('プラグインのアンインストールが必要なため、テストをスキップします'); |
| 382 | 382 | } |
| 383 | 383 | |
@@ -114,7 +114,7 @@ |
||
| 114 | 114 | |
| 115 | 115 | public function 受注ステータス検索($value = '') |
| 116 | 116 | { |
| 117 | - $this->tester->checkOption(['id' => 'admin_search_order_status_' . $value]); |
|
| 117 | + $this->tester->checkOption(['id' => 'admin_search_order_status_'.$value]); |
|
| 118 | 118 | $this->tester->click('#search_form #search_submit'); |
| 119 | 119 | return $this; |
| 120 | 120 | } |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | return "body > div > div.c-contentsArea > div.c-contentsArea__cols > div.c-contentsArea__primaryCol > div > div > div > div > ul > li:nth-child($rowNum) > div > div.col.d-flex.align-items-center > a"; |
| 99 | 99 | } |
| 100 | 100 | |
| 101 | - public static function XPathでタグを取得する($textEl){ |
|
| 101 | + public static function XPathでタグを取得する($textEl) { |
|
| 102 | 102 | return '//*[@id="page_admin_product_category"]/div[1]/div[3]/div[3]/div[1]/div/div/div/div/ul/li/div/div[2]/a[contains(text(), "'.$textEl.'")]'; |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | \ No newline at end of file |
@@ -25,6 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | /** |
| 27 | 27 | * @param string $type |
| 28 | + * @param string|null $message |
|
| 28 | 29 | */ |
| 29 | 30 | private function __construct($type, $message) |
| 30 | 31 | { |
@@ -26,6 +26,9 @@ discard block |
||
| 26 | 26 | return $page; |
| 27 | 27 | } |
| 28 | 28 | |
| 29 | + /** |
|
| 30 | + * @param \AcceptanceTester $I |
|
| 31 | + */ |
|
| 29 | 32 | public static function at($I) |
| 30 | 33 | { |
| 31 | 34 | $page = new self($I); |
@@ -46,30 +49,45 @@ discard block |
||
| 46 | 49 | return $this; |
| 47 | 50 | } |
| 48 | 51 | |
| 52 | + /** |
|
| 53 | + * @param string $value |
|
| 54 | + */ |
|
| 49 | 55 | public function 入力_姓($value, $num = 0) |
| 50 | 56 | { |
| 51 | 57 | $this->tester->fillField(['id' => 'form_shippings_'.$num.'_name_name01'], $value); |
| 52 | 58 | return $this; |
| 53 | 59 | } |
| 54 | 60 | |
| 61 | + /** |
|
| 62 | + * @param string $value |
|
| 63 | + */ |
|
| 55 | 64 | public function 入力_名($value, $num = 0) |
| 56 | 65 | { |
| 57 | 66 | $this->tester->fillField(['id' => 'form_shippings_'.$num.'_name_name02'], $value); |
| 58 | 67 | return $this; |
| 59 | 68 | } |
| 60 | 69 | |
| 70 | + /** |
|
| 71 | + * @param string $value |
|
| 72 | + */ |
|
| 61 | 73 | public function 入力_セイ($value, $num = 0) |
| 62 | 74 | { |
| 63 | 75 | $this->tester->fillField(['id' => 'form_shippings_'.$num.'_kana_kana01'], $value); |
| 64 | 76 | return $this; |
| 65 | 77 | } |
| 66 | 78 | |
| 79 | + /** |
|
| 80 | + * @param string $value |
|
| 81 | + */ |
|
| 67 | 82 | public function 入力_メイ($value, $num = 0) |
| 68 | 83 | { |
| 69 | 84 | $this->tester->fillField(['id' => 'form_shippings_'.$num.'_kana_kana02'], $value); |
| 70 | 85 | return $this; |
| 71 | 86 | } |
| 72 | 87 | |
| 88 | + /** |
|
| 89 | + * @param string $value |
|
| 90 | + */ |
|
| 73 | 91 | public function 入力_郵便番号($value, $num = 0) |
| 74 | 92 | { |
| 75 | 93 | $this->tester->fillField(['id' => 'form_shippings_'.$num.'_postal_code'], $value); |
@@ -83,18 +101,27 @@ discard block |
||
| 83 | 101 | return $this; |
| 84 | 102 | } |
| 85 | 103 | |
| 104 | + /** |
|
| 105 | + * @param string $value |
|
| 106 | + */ |
|
| 86 | 107 | public function 入力_市区町村名($value, $num = 0) |
| 87 | 108 | { |
| 88 | 109 | $this->tester->fillField(['id' => 'form_shippings_'.$num.'_address_addr01'], $value); |
| 89 | 110 | return $this; |
| 90 | 111 | } |
| 91 | 112 | |
| 113 | + /** |
|
| 114 | + * @param string $value |
|
| 115 | + */ |
|
| 92 | 116 | public function 入力_番地_ビル名($value, $num = 0) |
| 93 | 117 | { |
| 94 | 118 | $this->tester->fillField(['id' => 'form_shippings_'.$num.'_address_addr02'], $value); |
| 95 | 119 | return $this; |
| 96 | 120 | } |
| 97 | 121 | |
| 122 | + /** |
|
| 123 | + * @param string $value |
|
| 124 | + */ |
|
| 98 | 125 | public function 入力_電話番号($value, $num = 0) |
| 99 | 126 | { |
| 100 | 127 | $this->tester->fillField(['id' => 'form_shippings_'.$num.'_phone_number'], $value); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | { |
| 64 | 64 | $this->tester->click(self::$詳細検索ボタン); |
| 65 | 65 | $this->tester->wait(1); |
| 66 | - $this->tester->checkOption(['id' => 'admin_search_product_status_' . $value]); |
|
| 66 | + $this->tester->checkOption(['id' => 'admin_search_product_status_'.$value]); |
|
| 67 | 67 | $this->tester->click(self::$検索ボタン); |
| 68 | 68 | $this->tester->see('商品一覧商品管理', '.c-pageTitle'); |
| 69 | 69 | return $this; |
@@ -8,7 +8,7 @@ discard block |
||
| 8 | 8 | use Faker\Factory as Faker; |
| 9 | 9 | |
| 10 | 10 | |
| 11 | -$config = parse_ini_file(__DIR__.'/config.ini',true); |
|
| 11 | +$config = parse_ini_file(__DIR__.'/config.ini', true); |
|
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * create fixture |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $faker = Faker::create('ja_JP'); |
| 36 | 36 | Fixtures::add('faker', $faker); |
| 37 | 37 | |
| 38 | -$progress = (function() |
|
| 38 | +$progress = (function () |
|
| 39 | 39 | { |
| 40 | 40 | $current = ''; |
| 41 | 41 | return function ($key) use (&$current) { |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | ->getQuery() |
| 73 | 73 | ->getSingleScalarResult(); |
| 74 | 74 | // 受注生成件数 + 初期データの商品が生成されているはず |
| 75 | -if ($num < ($config['fixture_product_num']+2)) { |
|
| 75 | +if ($num < ($config['fixture_product_num'] + 2)) { |
|
| 76 | 76 | // 規格なしも含め $config['fixture_product_num'] の分だけ生成する |
| 77 | 77 | for ($i = 0; $i < $config['fixture_product_num'] - 1; $i++) { |
| 78 | 78 | $progress('Generating Products'); |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | */ |
| 161 | 161 | |
| 162 | 162 | /** 管理画面アカウント情報. */ |
| 163 | -Fixtures::add('admin_account',array( |
|
| 163 | +Fixtures::add('admin_account', array( |
|
| 164 | 164 | 'member' => $config['admin_user'], |
| 165 | 165 | 'password' => $config['admin_password'], |
| 166 | 166 | )); |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | |
| 226 | 226 | $deleteShippingNotExistsOfItem = function () use ($entityManager) { |
| 227 | 227 | |
| 228 | - $Shippings= $entityManager->getRepository('Eccube\Entity\Shipping')->findAll(); |
|
| 228 | + $Shippings = $entityManager->getRepository('Eccube\Entity\Shipping')->findAll(); |
|
| 229 | 229 | |
| 230 | 230 | if ($Shippings) { |
| 231 | 231 | foreach ($Shippings as $Shipping) { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | /** 商品を検索するクロージャ. */ |
| 251 | 251 | Fixtures::add('findProducts', $findProducts); |
| 252 | 252 | |
| 253 | -$createProduct = function($product_name = null, $product_class_num = 3) use ($container) { |
|
| 253 | +$createProduct = function ($product_name = null, $product_class_num = 3) use ($container) { |
|
| 254 | 254 | return createProduct($container, $product_name, $product_class_num); |
| 255 | 255 | }; |
| 256 | 256 | Fixtures::add('createProduct', $createProduct); |