We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
12 | class CrudPanelDeleteTest extends BaseDBCrudPanelTest |
||
13 | { |
||
14 | public function testDelete() |
||
15 | { |
||
16 | $this->markTestIncomplete('Not correctly implemented'); |
||
17 | |||
18 | $this->crudPanel->setModel(Article::class); |
||
19 | $article = Article::find(1); |
||
20 | |||
21 | $wasDeleted = $this->crudPanel->delete($article->id); |
||
22 | |||
23 | // TODO: the delete method should not convert the returned result to a string |
||
24 | $deletedArticle = Article::find(1); |
||
25 | $this->assertTrue($wasDeleted); |
||
26 | $this->assertNull($deletedArticle); |
||
27 | } |
||
28 | |||
29 | public function testDeleteUnknown() |
||
37 | } |
||
38 | |||
39 | public function testItAddsTheBulkDeleteButton() |
||
45 |