| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function testAccessors(): void |
||
| 15 | { |
||
| 16 | $data = [ |
||
| 17 | 'lastSync' => '2017-04-15T23:35:00+02:00', |
||
| 18 | 'jiraUsername' => 'foo', |
||
| 19 | 'jiraPassword' => 'bar', |
||
| 20 | 'togglApiKey' => 'foz', |
||
| 21 | 'jiraUrl' => 'http://www.example.com', |
||
| 22 | ]; |
||
| 23 | |||
| 24 | $syncOptions = new SyncOptions($data); |
||
| 25 | |||
| 26 | $this->assertEquals($data['lastSync'], $syncOptions->getLastSync()); |
||
| 27 | $this->assertEquals($data['jiraUsername'], $syncOptions->getJiraUsername()); |
||
| 28 | $this->assertEquals($data['jiraPassword'], $syncOptions->getJiraPassword()); |
||
| 29 | $this->assertEquals($data['togglApiKey'], $syncOptions->getTogglApiKey()); |
||
| 30 | $this->assertEquals($data['jiraUrl'], $syncOptions->getJiraUrl()); |
||
| 31 | } |
||
| 49 | } |