Failed Conditions
Pull Request — experimental/sf (#3241)
by k-yamamura
43:19 queued 23:09
created

CustomerAddressAddPage::入力_姓()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
/*
4
 * This file is part of EC-CUBE
5
 *
6
 * Copyright(c) 2000-2017 LOCKON CO.,LTD. All Rights Reserved.
7
 *
8
 * http://www.lockon.co.jp/
9
 *
10
 * This program is free software; you can redistribute it and/or
11
 * modify it under the terms of the GNU General Public License
12
 * as published by the Free Software Foundation; either version 2
13
 * of the License, or (at your option) any later version.
14
 *
15
 * This program is distributed in the hope that it will be useful,
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 * GNU General Public License for more details.
19
 *
20
 * You should have received a copy of the GNU General Public License
21
 * along with this program; if not, write to the Free Software
22
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23
 */
24
25
namespace Page\Front;
26
27
28
class CustomerAddressAddPage extends AbstractFrontPage
0 ignored issues
show
introduced by
Missing class doc comment
Loading history...
29
{
30
    public function __construct(\AcceptanceTester $I)
31
    {
32
        parent::__construct($I);
33
    }
34
35
    public static function at($I)
36
    {
37
        $page = new self($I);
38
        $page->tester->see('お届け先の追加', 'div.ec-layoutRole__main h1');
39
        return $page;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
40
    }
41
42
    public function 入力_姓($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::入力_姓" is not in camel caps format
Loading history...
43
    {
44
        $this->tester->fillField(['id' => 'shopping_shipping_name_name01'], $value);
45
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
46
    }
47
48
    public function 入力_名($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::入力_名" is not in camel caps format
Loading history...
49
    {
50
        $this->tester->fillField(['id' => 'shopping_shipping_name_name02'], $value);
51
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
52
    }
53
54
    public function 入力_セイ($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::入力_セイ" is not in camel caps format
Loading history...
55
    {
56
        $this->tester->fillField(['id' => 'shopping_shipping_kana_kana01'], $value);
57
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
58
    }
59
60
    public function 入力_メイ($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::入力_メイ" is not in camel caps format
Loading history...
61
    {
62
        $this->tester->fillField(['id' => 'shopping_shipping_kana_kana02'], $value);
63
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
64
    }
65
66
    public function 入力_郵便番号($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::入力_郵便番号" is not in camel caps format
Loading history...
67
    {
68
        $this->tester->fillField(['id' => 'shopping_shipping_postal_code'], $value);
69
70
        return $this;
71
    }
72
73
    public function 入力_都道府県($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::入力_都道府県" is not in camel caps format
Loading history...
74
    {
75
        $this->tester->selectOption(['id' => 'shopping_shipping_address_pref'], $value);
76
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
77
    }
78
79
    public function 入力_市区町村名($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::入力_市区町村名" is not in camel caps format
Loading history...
80
    {
81
        $this->tester->fillField(['id' => 'shopping_shipping_address_addr01'], $value);
82
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
83
    }
84
85
    public function 入力_番地_ビル名($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::入力_番地_ビル名" is not in camel caps format
Loading history...
86
    {
87
        $this->tester->fillField(['id' => 'shopping_shipping_address_addr02'], $value);
88
        return $this;
0 ignored issues
show
introduced by
Missing blank line before return statement
Loading history...
89
    }
90
91
    public function 入力_電話番号($value)
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::入力_電話番号" is not in camel caps format
Loading history...
92
    {
93
        $this->tester->fillField(['id' => 'shopping_shipping_phone_number'], $value);
94
95
        return $this;
96
    }
97
98
    public function 登録する()
0 ignored issues
show
Coding Style introduced by
Method name "CustomerAddressAddPage::登録する" is not in camel caps format
Loading history...
99
    {
100
        $this->tester->click('#detail_box__insert_button > button');
101
    }
102
}
103