@@ -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"); |
@@ -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); |
@@ -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 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | |
| 96 | 96 | // 会員情報入力フォームに、会員情報を入力する |
| 97 | 97 | // 「同意する」ボタンを押下する |
| 98 | - $I->submitForm(['css' => '.ec-layoutRole__main form'],[ |
|
| 98 | + $I->submitForm(['css' => '.ec-layoutRole__main form'], [ |
|
| 99 | 99 | 'entry[name][name01]' => '姓', |
| 100 | 100 | 'entry[name][name02]' => '名', |
| 101 | 101 | 'entry[kana][kana01]' => 'セイ', |
@@ -128,7 +128,7 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | // 会員情報入力フォームに、会員情報を入力する |
| 130 | 130 | // 「同意する」ボタンを押下する |
| 131 | - $I->submitForm(['css' => '.ec-layoutRole__main form'],[ |
|
| 131 | + $I->submitForm(['css' => '.ec-layoutRole__main form'], [ |
|
| 132 | 132 | 'entry[name][name01]' => '', |
| 133 | 133 | 'entry[name][name02]' => '名', |
| 134 | 134 | 'entry[kana][kana01]' => 'セイ', |
@@ -140,7 +140,7 @@ |
||
| 140 | 140 | ProductDetailPage::go($I, 2); |
| 141 | 141 | |
| 142 | 142 | // 「カートに入れる」ボタンが、非活性となり「ただいま品切れ中です」と表示される。 |
| 143 | - $I->see('ただいま品切れ中です','#form1 button'); |
|
| 143 | + $I->see('ただいま品切れ中です', '#form1 button'); |
|
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | public function product_商品詳細カテゴリリンク(\AcceptanceTester $I) |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | $createCustomer = Fixtures::get('createCustomer'); |
| 82 | 82 | $customer = $createCustomer(); |
| 83 | 83 | $I->resetEmails(); |
| 84 | - $I->submitForm('#form1',[ |
|
| 84 | + $I->submitForm('#form1', [ |
|
| 85 | 85 | 'login_email' => $customer->getEmail() |
| 86 | 86 | ]); |
| 87 | 87 | $I->see('パスワード発行メールの送信 完了', 'div.ec-pageHeader h1'); |
@@ -17,12 +17,12 @@ |
||
| 17 | 17 | { |
| 18 | 18 | $I->wantTo('perform actions and see result'); |
| 19 | 19 | $I->amOnPage('/'); |
| 20 | - $I->see('くらしを楽しむライフスタイルグッズ','.copy'); |
|
| 20 | + $I->see('くらしを楽しむライフスタイルグッズ', '.copy'); |
|
| 21 | 21 | |
| 22 | - $shopName = $I->grabFromDatabase('dtb_base_info','shop_name'); |
|
| 23 | - $I->assertEquals('EC-CUBE3 SHOP',$shopName); |
|
| 22 | + $shopName = $I->grabFromDatabase('dtb_base_info', 'shop_name'); |
|
| 23 | + $I->assertEquals('EC-CUBE3 SHOP', $shopName); |
|
| 24 | 24 | |
| 25 | - $products = $I->grabFromDatabase('dtb_product','status',array('product_id'=>1)); |
|
| 25 | + $products = $I->grabFromDatabase('dtb_product', 'status', array('product_id'=>1)); |
|
| 26 | 26 | codecept_debug($products); |
| 27 | 27 | |
| 28 | 28 | $bi = Fixtures::get('baseinfo'); |