@@ 121-128 (lines=8) @@ | ||
118 | $this->assertFalse($result); |
|
119 | } |
|
120 | ||
121 | public function testWasAddressCheckedBeforeNoResult() |
|
122 | { |
|
123 | $this->shopHelper->method('getConfigParam')->willReturn(5); |
|
124 | $this->connection->method('fetchOne')->willReturn(false); |
|
125 | ||
126 | $result = $this->classToTest->wasAddressCheckedBefore($this->address, true); |
|
127 | $this->assertFalse($result); |
|
128 | } |
|
129 | ||
130 | public function testWasAddressCheckedBefore() |
|
131 | { |
|
@@ 130-137 (lines=8) @@ | ||
127 | $this->assertFalse($result); |
|
128 | } |
|
129 | ||
130 | public function testWasAddressCheckedBefore() |
|
131 | { |
|
132 | $this->shopHelper->method('getConfigParam')->willReturn(5); |
|
133 | $this->connection->method('fetchOne')->willReturn('2017-01-01 01:01:01'); |
|
134 | ||
135 | $result = $this->classToTest->wasAddressCheckedBefore($this->address, true); |
|
136 | $this->assertTrue($result); |
|
137 | } |
|
138 | } |
|
139 |