Code Duplication    Length = 21-23 lines in 3 locations

codeception/acceptance/EA07BasicinfoCest.php 3 locations

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