| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | public function testVerify() |
||
| 25 | { |
||
| 26 | $handler = new MethodAuthenticationHandler(); |
||
| 27 | |||
| 28 | /** @var HTTPRequest|PHPUnit_Framework_MockObject_MockObject $request */ |
||
| 29 | $request = $this->createMock(HTTPRequest::class); |
||
| 30 | $request->expects($this->once())->method('param')->with('answer')->willReturn(10); |
||
| 31 | |||
| 32 | /** @var StoreInterface|PHPUnit_Framework_MockObject_MockObject $store */ |
||
| 33 | $store = $this->createMock(StoreInterface::class); |
||
| 34 | $store->expects($this->once())->method('getState')->willReturn([ |
||
| 35 | 'answer' => 10, |
||
| 36 | ]); |
||
| 37 | |||
| 38 | $this->assertTrue($handler->verify($request, $store)); |
||
| 39 | } |
||
| 41 |