@@ 107-113 (lines=7) @@ | ||
104 | ]); |
|
105 | } |
|
106 | ||
107 | public function testCustomerHasGivenGender() |
|
108 | { |
|
109 | $this->coreCustomer->method('getGender')->willReturn('m'); |
|
110 | $result = $this->customer->customerHasGivenGender(); |
|
111 | $expected = true; |
|
112 | $this->assertEquals($expected, $result); |
|
113 | } |
|
114 | ||
115 | public function testCustomerHasGivenGenderFalse() |
|
116 | { |
|
@@ 115-121 (lines=7) @@ | ||
112 | $this->assertEquals($expected, $result); |
|
113 | } |
|
114 | ||
115 | public function testCustomerHasGivenGenderFalse() |
|
116 | { |
|
117 | $this->coreCustomer->method('getGender')->willReturn(null); |
|
118 | $result = $this->customer->customerHasGivenGender(); |
|
119 | $expected = false; |
|
120 | $this->assertEquals($expected, $result); |
|
121 | } |
|
122 | ||
123 | public function testCustomerHasGivenBirthday() |
|
124 | { |
|
@@ 123-129 (lines=7) @@ | ||
120 | $this->assertEquals($expected, $result); |
|
121 | } |
|
122 | ||
123 | public function testCustomerHasGivenBirthday() |
|
124 | { |
|
125 | $this->coreCustomer->method('getDob')->willReturn('1999-19-09'); |
|
126 | $result = $this->customer->customerHasGivenBirthday(); |
|
127 | $expected = true; |
|
128 | $this->assertEquals($expected, $result); |
|
129 | } |
|
130 | ||
131 | public function testCustomerHasGivenBirthdayFalse() |
|
132 | { |
|
@@ 131-137 (lines=7) @@ | ||
128 | $this->assertEquals($expected, $result); |
|
129 | } |
|
130 | ||
131 | public function testCustomerHasGivenBirthdayFalse() |
|
132 | { |
|
133 | $this->coreCustomer->method('getDob')->willReturn(null); |
|
134 | $result = $this->customer->customerHasGivenBirthday(); |
|
135 | $expected = false; |
|
136 | $this->assertEquals($expected, $result); |
|
137 | } |
|
138 | ||
139 | public function testGetRegionCode() |
|
140 | { |