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 | 0 | ||
| 1 | <?php |
||
| 21 | public function testThrowsErrorIfMacroExists() |
||
| 22 | { |
||
| 23 | try { |
||
| 24 | $this->crudPanel::macro('setModel', function () { |
||
| 25 | return true; |
||
| 26 | }); |
||
| 27 | } catch (\Throwable $e) { |
||
|
|
|||
| 28 | } |
||
| 29 | $this->assertEquals( |
||
| 30 | new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Cannot register \'setModel\' macro. \'setModel()\' already exists on Backpack\CRUD\app\Library\CrudPanel\CrudPanel', null, ['developer-error-exception']), |
||
| 31 | $e |
||
| 32 | ); |
||
| 35 |