| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testGettersSetters() |
||
| 11 | { |
||
| 12 | $url = 'https://www.example.com'; |
||
| 13 | |||
| 14 | $entity = new WebhookExchange($url); |
||
| 15 | |||
| 16 | $this->assertSame(null, $entity->getId()); |
||
| 17 | $this->assertSame($url, $entity->getUrl()); |
||
| 18 | $this->assertSame(0, $entity->getLastEventId()); |
||
| 19 | |||
| 20 | $entity |
||
| 21 | ->setId(10) |
||
| 22 | ->setLastEventId(1) |
||
| 23 | ->setUrl('https://www.example.dk') |
||
| 24 | ; |
||
| 25 | |||
| 26 | $this->assertSame(10, $entity->getId()); |
||
| 27 | $this->assertSame('https://www.example.dk', $entity->getUrl()); |
||
| 28 | $this->assertSame(1, $entity->getLastEventId()); |
||
| 29 | } |
||
| 30 | } |
||
| 31 |