Ensure debug is false in tests to avoid accidentally masking exception responses wrongly
This commit is contained in:
parent
69f27ed807
commit
a9e4587125
|
@ -16,6 +16,15 @@ abstract class TestCase extends BaseTestCase
|
|||
{
|
||||
parent::setUp();
|
||||
|
||||
// Why, you ask? If we don't force this to false it is possible for certain exceptions
|
||||
// to show their error message properly in the integration test output, but not actually
|
||||
// be setup correctly to display thier message in production.
|
||||
//
|
||||
// If we expect a message in a test, and it isn't showing up (rather, showing the generic
|
||||
// "an error occurred" message), we can probably assume that the exception isn't one that
|
||||
// is recognized as being user viewable.
|
||||
config()->set('app.debug', false);
|
||||
|
||||
$this->setKnownUuidFactory();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue