Completed
Push — 4.0 ( 87d096...bcc1be )
by Kiyotaka
05:44 queued 11s
created

ShippingCsvUploadPage::雛形ダウンロード()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 6
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 0
dl 6
loc 6
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) EC-CUBE CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.ec-cube.co.jp/
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Page\Admin;
15
16 View Code Duplication
class ShippingCsvUploadPage extends AbstractAdminPageStyleGuide
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
17
{
18
    public static $完了メッセージ = 'div.alert-primary';
19
20
    public function __construct(\AcceptanceTester $I)
21
    {
22
        parent::__construct($I);
23
    }
24
25
    /**
26
     * @param \AcceptanceTester $I
27
     */
28
    public static function go($I)
29
    {
30
        $page = new ProductCsvUploadPage($I);
31
32
        return $page->goPage('/order/shipping_csv_upload', '出荷CSV登録受注管理');
0 ignored issues
show
Bug introduced by
The method goPage() cannot be called from this context as it is declared protected in class Page\Admin\AbstractAdminPage.

This check looks for access to methods that are not accessible from the current context.

If you need to make a method accessible to another context you can raise its visibility level in the defining class.

Loading history...
33
    }
34
35
    public function 入力_CSVファイル($fileName)
36
    {
37
        $this->tester->attachFile(['id' => 'admin_csv_import_import_file'], $fileName);
38
39
        return $this;
40
    }
41
42
    public function CSVアップロード()
43
    {
44
        $this->tester->click(['id' => 'upload-button']);
45
46
        return $this;
47
    }
48
49
    public function 雛形ダウンロード()
50
    {
51
        $this->tester->click(['id' => 'download-button']);
52
53
        return $this;
54
    }
55
}
56