mirror of
https://github.com/tiennm99/coolify.git
synced 2026-08-22 16:23:51 +00:00
fix(helpers): prevent warnings when loading database helpers
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
use Symfony\Component\Process\Process;
|
||||
|
||||
it('loads the database helper without PHP warnings', function () {
|
||||
$process = new Process([
|
||||
PHP_BINARY,
|
||||
'-d',
|
||||
'display_errors=1',
|
||||
'-d',
|
||||
'error_reporting=E_ALL',
|
||||
'-l',
|
||||
__DIR__.'/../../bootstrap/helpers/databases.php',
|
||||
]);
|
||||
|
||||
$process->run();
|
||||
|
||||
expect($process->isSuccessful())->toBeTrue()
|
||||
->and($process->getOutput().$process->getErrorOutput())->not->toContain('Warning');
|
||||
});
|
||||
Reference in New Issue
Block a user