0

while testing a laravel package with Orchestral/testbench, I'm getting error 500. but the exception handling do not say much why the error happend.

here is the TestCase.php

<?php

namespace DivineAlien\Gourl\Tests;

use DivineAlien\Gourl\GourlServiceProvider;
use Orchestra\Testbench\TestCase as Orchestra;

abstract class TestCase extends Orchestra
{
    public function setUp(): void
    {
        parent::setUp();
    }

    protected function getPackageProviders($app)
    {
        return [
            GourlServiceProvider::class,
        ];
    }

    protected function getEnvironmentSetUp($app)
    {
        $app['config']->set('app.env', 'testing');
        $app['config']->set('app.debug', true);

        $app['config']->set('database.connections.testing', [
            'driver' => 'mysql',
            'host' => env('DB_TEST_HOST', 'localhost'),
            'database' => env('DB_TEST_DATABASE', 'laravel'),
            'username' => env('DB_TEST_USERNAME', 'laravel'),
            'password' => env('DB_TEST_PASSWORD', 'laravel'),
            'charset' => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix' => '',
            'strict' => false,
        ]);

        $app['config']->set('logging.default', 'single');
        $app['config']->set('logging.channels.single', [
            'driver' => 'single',
            'tap' => [App\Logging\CustomizeFormatter::class],
            'path' => __DIR__.'/logs/test.log',
            'level' => 'debug',
        ]);
    }
}

enter image description here

I wan't the full error message not just a exception saying hey you have an error!

Mohammad Hossein
  • 404
  • 7
  • 21

0 Answers0