Skip to content

Commit 55cdcc0

Browse files
committed
fix tests
1 parent e6f1363 commit 55cdcc0

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/Unit/CrudPanel/CrudPanelButtonsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ public function testThrowsErrorInUnknownPosition()
362362
} catch (\Throwable $e) {
363363
}
364364
$this->assertEquals(
365-
new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Unknown button position - please use \'beginning\' or \'end\'.'),
365+
new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Unknown button position - please use \'beginning\' or \'end\'.', null, ['developer-error-exception']),
366366
$e
367367
);
368368
}

tests/Unit/CrudPanel/CrudPanelFieldsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ public function testItAbortsOnUnexpectedEntity()
658658
} catch (\Throwable $e) {
659659
}
660660
$this->assertEquals(
661-
new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Looks like field <code>doesNotExist</code> is not properly defined. The <code>doesNotExist()</code> relationship doesn\'t seem to exist on the <code>Backpack\CRUD\Tests\Config\Models\TestModel</code> model.'),
661+
new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Looks like field <code>doesNotExist</code> is not properly defined. The <code>doesNotExist()</code> relationship doesn\'t seem to exist on the <code>Backpack\CRUD\Tests\Config\Models\TestModel</code> model.', null, ['developer-error-exception']),
662662
$e
663663
);
664664
}
@@ -903,7 +903,7 @@ public function testItAbortsWithEmptyNamesFluently()
903903
} catch (\Throwable $e) {
904904
}
905905
$this->assertEquals(
906-
new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Field name can\'t be empty.'),
906+
new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Field name can\'t be empty.', null, ['developer-error-exception']),
907907
$e
908908
);
909909
}

tests/Unit/CrudPanel/CrudPanelMacroTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public function testThrowsErrorIfMacroExists()
2727
} catch (\Throwable $e) {
2828
}
2929
$this->assertEquals(
30-
new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Cannot register \'setModel\' macro. \'setModel()\' already exists on Backpack\CRUD\app\Library\CrudPanel\CrudPanel'),
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']),
3131
$e
3232
);
3333
}

tests/Unit/CrudPanel/CrudPanelValidationTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function testItThrowsExceptionWithInvalidValidationClass()
203203
} catch (\Throwable $e) {
204204
}
205205
$this->assertEquals(
206-
new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Please pass setValidation() nothing, a rules array or a FormRequest class.'),
206+
new \Symfony\Component\HttpKernel\Exception\HttpException(500, 'Please pass setValidation() nothing, a rules array or a FormRequest class.', null, ['developer-error-exception']),
207207
$e
208208
);
209209
}

0 commit comments

Comments
 (0)