Ensure debug is false in tests to avoid accidentally masking exception responses wrongly

This commit is contained in:
Dane Everitt 2020-10-10 16:51:44 -07:00
parent 69f27ed807
commit a9e4587125
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 9 additions and 0 deletions

View File

@ -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();
}