| Conditions | 1 |
| Paths | 1 |
| Total Lines | 20 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function testGettersSetters() |
||
| 11 | { |
||
| 12 | $terminal = $this->getTerminal(); |
||
| 13 | |||
| 14 | $terminal |
||
| 15 | ->setId(1) |
||
| 16 | ->setTitle('title') |
||
| 17 | ->setSlug('sluuuug') |
||
| 18 | ->setCountry('DK') |
||
| 19 | ->setCurrencies(['EUR', 'DKK']) |
||
| 20 | ->setNatures(['Nature 1', 'Nature 2']) |
||
| 21 | ; |
||
| 22 | |||
| 23 | $this->assertSame(1, $terminal->getId()); |
||
| 24 | $this->assertSame('title', $terminal->getTitle()); |
||
| 25 | $this->assertSame('sluuuug', $terminal->getSlug()); |
||
| 26 | $this->assertSame('DK', $terminal->getCountry()); |
||
| 27 | $this->assertSame(['EUR', 'DKK'], $terminal->getCurrencies()); |
||
| 28 | $this->assertSame(['Nature 1', 'Nature 2'], $terminal->getNatures()); |
||
| 29 | } |
||
| 30 | |||
| 48 |