We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| @@ 26-34 (lines=9) @@ | ||
| 23 | $this->assertNull($deletedArticle); |
|
| 24 | } |
|
| 25 | ||
| 26 | public function testDeleteUnknown() |
|
| 27 | { |
|
| 28 | $this->setExpectedException(ModelNotFoundException::class); |
|
| 29 | ||
| 30 | $this->crudPanel->setModel(Article::class); |
|
| 31 | $unknownId = DB::getPdo()->lastInsertId() + 1; |
|
| 32 | ||
| 33 | $this->crudPanel->delete($unknownId); |
|
| 34 | } |
|
| 35 | } |
|
| 36 | ||
| @@ 152-160 (lines=9) @@ | ||
| 149 | $this->assertInstanceOf(Article::class, $articleEntry); |
|
| 150 | } |
|
| 151 | ||
| 152 | public function testGetEntryUnknownId() |
|
| 153 | { |
|
| 154 | $this->setExpectedException(ModelNotFoundException::class); |
|
| 155 | ||
| 156 | $this->crudPanel->setModel(User::class); |
|
| 157 | ||
| 158 | $unknownId = DB::getPdo()->lastInsertId() + 1; |
|
| 159 | $this->crudPanel->getEntry($unknownId); |
|
| 160 | } |
|
| 161 | ||
| 162 | public function testAutoEagerLoadRelationshipColumns() |
|
| 163 | { |
|