We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 11 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 19 | public function testThrowsErrorIfMacroExists() | ||
| 20 |     { | ||
| 21 |         try { | ||
| 22 |             $this->crudPanel::macro('setModel', function () { | ||
| 23 | return true; | ||
| 24 | }); | ||
| 25 |         } catch (\Throwable $e) { | ||
| 26 | } | ||
| 27 | $this->assertEquals( | ||
| 28 | new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Cannot register \'setModel\' macro. \'setModel()\' already exists on Backpack\CRUD\app\Library\CrudPanel\CrudPanel'), | ||
| 29 | $e | ||
| 30 | ); | ||
| 33 |