Code Duplication    Length = 32-34 lines in 3 locations

codeception/_support/Page/Admin/MailSettingsPage.php 1 location

@@ 7-38 (lines=32) @@
4
namespace Page\Admin;
5
6
7
class MailSettingsPage extends AbstractAdminPageStyleGuide
8
{
9
    public static $登録完了メッセージ = '#page_admin_setting_shop_mail_edit > div.c-container > div.c-contentsArea > div.alert.alert-success.alert-dismissible.fade.show.m-3 > span';
10
11
    public function __construct(\AcceptanceTester $I)
12
    {
13
        parent::__construct($I);
14
    }
15
16
    public static function go($I)
17
    {
18
        $page = new self($I);
19
        return $page->goPage('/setting/shop/mail', 'メール設定基本情報設定');
20
    }
21
22
    public function 入力_テンプレート($value) {
23
        $this->tester->selectOption(['id' => 'mail_template'], $value);
24
        return $this;
25
    }
26
27
    public function 入力_件名($value) {
28
        $this->tester->fillField(['id' => 'mail_mail_subject'], $value);
29
        return $this;
30
    }
31
32
    public function 登録() {
33
        $this->tester->click('#form1 #aside_column button');
34
        return $this;
35
    }
36
37
38
}

codeception/_support/Page/Admin/PaymentEditPage.php 1 location

@@ 7-40 (lines=34) @@
4
namespace Page\Admin;
5
6
7
class PaymentEditPage extends AbstractAdminPageStyleGuide
8
{
9
    public function __construct(\AcceptanceTester $I)
10
    {
11
        parent::__construct($I);
12
    }
13
14
    public static function at($I)
15
    {
16
        $page = new self($I);
17
        return $page->atPage('支払方法登録・編集基本情報設定');
18
    }
19
20
    public function 入力_支払方法($value) {
21
        $this->tester->fillField(['id' => 'payment_register_method'], $value);
22
        return $this;
23
    }
24
25
    public function 入力_手数料($value) {
26
        $this->tester->fillField(['id' => 'payment_register_charge'], $value);
27
        return $this;
28
    }
29
30
    public function 入力_利用条件下限($value) {
31
        $this->tester->fillField(['id' => 'payment_register_rule_min'], $value);
32
        return $this;
33
    }
34
35
    public function 登録()
36
    {
37
        $this->tester->click('#form1 > .c-conversionArea > .c-conversionArea__container button.btn-ec-conversion');
38
    }
39
40
}

codeception/_support/Page/Admin/ShippingCsvUploadPage.php 1 location

@@ 27-59 (lines=33) @@
24
namespace Page\Admin;
25
26
27
class ShippingCsvUploadPage extends AbstractAdminPageStyleGuide
28
{
29
    public static $完了メッセージ = 'div.alert-primary';
30
31
    public function __construct(\AcceptanceTester $I)
32
    {
33
        parent::__construct($I);
34
    }
35
36
    public static function go($I)
37
    {
38
        $page = new ProductCsvUploadPage($I);
39
        return $page->goPage('/shipping/shipping_csv_upload', '出荷CSV登録出荷管理');
40
    }
41
42
    public function 入力_CSVファイル($fileName)
43
    {
44
        $this->tester->attachFile(['id' => 'admin_csv_import_import_file'], $fileName);
45
        return $this;
46
    }
47
48
    public function CSVアップロード()
49
    {
50
        $this->tester->click(['id' => 'upload-button']);
51
        return $this;
52
    }
53
54
    public function 雛形ダウンロード()
55
    {
56
        $this->tester->click(['id' => 'download-button']);
57
        return $this;
58
    }
59
}