| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function testCheck() |
||
| 27 | { |
||
| 28 | $result = new Success('Test check', 'OK'); |
||
| 29 | |||
| 30 | $backend = $this->getMock('Sonata\NotificationBundle\Backend\BackendInterface'); |
||
| 31 | $backend->expects($this->once())->method('getStatus')->will($this->returnValue($result)); |
||
| 32 | |||
| 33 | $health = new BackendHealthCheck($backend); |
||
| 34 | |||
| 35 | $this->assertEquals($result, $health->check()); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |