| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function testCreate(): void |
||
| 15 | { |
||
| 16 | $issue = $this->issueFactory->create([ |
||
| 17 | 'number' => 1, |
||
| 18 | 'title' => '[Test] _ Title', |
||
| 19 | 'body' => 'Test Body', |
||
| 20 | 'html_url' => 'https://google.com', |
||
| 21 | 'user' => ['login' => 'jwage'], |
||
| 22 | 'labels' => [['name' => 'Enhancement']], |
||
| 23 | ]); |
||
| 24 | |||
| 25 | self::assertSame(1, $issue->getNumber()); |
||
| 26 | self::assertSame('[Test] _ Title', $issue->getTitle()); |
||
| 27 | self::assertSame('Test Body', $issue->getBody()); |
||
| 28 | self::assertSame('https://google.com', $issue->getUrl()); |
||
| 29 | self::assertSame('jwage', $issue->getUser()); |
||
| 30 | self::assertSame(['Enhancement'], $issue->getLabels()); |
||
| 31 | } |
||
| 38 |