Code Duplication    Length = 21-23 lines in 3 locations

codeception/acceptance/EA07BasicinfoCest.php 3 locations

@@ 81-103 (lines=23) @@
78
        $I->see('郵便振替', $PaymentManagePage->一覧_支払方法(1));
79
    }
80
81
    public function basicinfo_支払方法登録(\AcceptanceTester $I)
82
    {
83
        $I->getScenario()->skip('EA0705-UC01-T01 支払方法 登録');
84
        $I->wantTo('EA0705-UC01-T01 支払方法 登録');
85
86
        // 表示
87
        // 登録フォーム
88
        PaymentManagePage::go($I)
89
            ->新規入力();
90
91
        // 登録
92
        PaymentEditPage::at($I)
93
            ->入力_支払方法('payment method1')
94
            ->入力_手数料('100')
95
            ->入力_利用条件下限('1')
96
            ->登録();
97
98
        PaymentEditPage::at($I);
99
        $I->see('保存しました', PaymentEditPage::$登録完了メッセージ);
100
101
        $PaymentManagePage = PaymentManagePage::go($I);
102
        $I->see('payment method1', $PaymentManagePage->一覧_支払方法(1));
103
    }
104
105
    public function basicinfo_支払方法編集(\AcceptanceTester $I)
106
    {
@@ 105-125 (lines=21) @@
102
        $I->see('payment method1', $PaymentManagePage->一覧_支払方法(1));
103
    }
104
105
    public function basicinfo_支払方法編集(\AcceptanceTester $I)
106
    {
107
        $I->getScenario()->skip('EA0705-UC01-T01 支払方法 登録');
108
        $I->wantTo('EA0705-UC02-T01 支払方法 編集');
109
110
        // 表示
111
        PaymentManagePage::go($I)
112
            ->一覧_編集(1);
113
114
        // 編集
115
        PaymentEditPage::at($I)
116
            ->入力_支払方法('payment method2')
117
            ->入力_手数料('1000')
118
            ->登録();
119
120
        PaymentEditPage::at($I);
121
        $I->see('保存しました', PaymentEditPage::$登録完了メッセージ);
122
123
        $PaymentManagePage = PaymentManagePage::go($I);
124
        $I->see('payment method2', $PaymentManagePage->一覧_支払方法(1));
125
    }
126
127
    public function basicinfo_支払方法削除(\AcceptanceTester $I)
128
    {
@@ 147-168 (lines=22) @@
144
        $I->see('サンプル宅配', $DeliveryManagePage->一覧_名称(2));
145
    }
146
147
    public function basicinfo_配送方法登録(\AcceptanceTester $I)
148
    {
149
        $I->wantTo('EA0707-UC01-T01 配送方法 登録');
150
151
        // 表示
152
        DeliveryManagePage::go($I)
153
            ->新規登録();
154
155
        // 登録
156
        DeliveryEditPage::at($I)
157
            ->入力_配送業者名('配送業者名')
158
            ->入力_名称('名称')
159
            ->入力_支払方法選択(['1', '4'])
160
            ->入力_全国一律送料('100')
161
            ->登録();
162
163
        DeliveryEditPage::at($I);
164
        $I->see('保存しました', DeliveryEditPage::$登録完了メッセージ);
165
166
        $DeliveryManagePage = DeliveryManagePage::go($I);
167
        $I->see('配送業者名', $DeliveryManagePage->一覧_名称(2));
168
    }
169
170
    public function basicinfo_配送方法編集(\AcceptanceTester $I)
171
    {