EnAccess / micropowermanager

Management Tool for Decentralized Utilities.
https://micropowermanager.com/
MIT License
0 stars 0 forks source link

Fix the Test Suite #108

Open dmohns opened 2 weeks ago

dmohns commented 2 weeks ago

Currently, the test suite is broken. Please make it so that the test command works

root@4b3bb5556234:/var/www/html/mpmanager# php artisan test

   FAIL  Tests\Unit\AgentSellApplianceTest
  ⨯ agent sell appliance

   PHPUnit\Framework\ExceptionWrapper

  Database connection [shard] not configured.

  at vendor/laravel/framework/src/Illuminate/Database/DatabaseManager.php:173
    169▕         // If the configuration doesn't exist, we'll throw an exception and bail.
    170▕         $connections = $this->app['config']['database.connections'];
    171▕
    172▕         if (is_null($config = Arr::get($connections, $name))) {
  ➜ 173▕             throw new InvalidArgumentException("Database connection [{$name}] not configured.");
    174▕         }
    175▕
    176▕         return (new ConfigurationUrlParser)
    177▕                     ->parseConfiguration($config);

  Tests:  1 failed, 164 pending
  Time:   0.27s