prevent constant to be duplicated during tests

This commit is contained in:
Daniël Klabbers 2019-09-11 12:20:35 +02:00
parent 55d7e86a38
commit c4806e19b5

View File

@ -36,7 +36,9 @@ class QueueServiceProvider extends AbstractServiceProvider
public function register() public function register()
{ {
if (! defined('ARTISAN_BINARY')) {
define('ARTISAN_BINARY', 'flarum'); define('ARTISAN_BINARY', 'flarum');
}
// Register a simple connection factory that always returns the same // Register a simple connection factory that always returns the same
// connection, as that is enough for our purposes. // connection, as that is enough for our purposes.