liberu-cms / cms-laravel

CMS application written in Laravel 11 / PHP 8.3 using Filament 3
https://www.facebook.com/liberusoftware
57 stars 14 forks source link

PHPUnit testing issue #180

Open rborcherds opened 4 months ago

rborcherds commented 4 months ago

Details

The Unit Tests that are run during the installation process fail due to them not using the DB configuration from the .env file.

Here is 2 errors from the laravel.log file right after installing.

[2024-07-24 00:00:03] testing.ERROR: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (Connection: mysql, SQL: select from posts where is_featured = 1) {"exception":"[object] (Illuminate\Database\QueryException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) (Connection: mysql, SQL: select from posts where is_featured = 1) at /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php:813) [stacktrace]

0 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(767): Illuminate\Database\Connection->runQueryCallback()

1 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(398): Illuminate\Database\Connection->run()

2 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2996): Illuminate\Database\Connection->select()

3 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2981): Illuminate\Database\Query\Builder->runSelect()

4 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3569): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()

5 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2980): Illuminate\Database\Query\Builder->onceWithColumns()

6 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(759): Illuminate\Database\Query\Builder->get()

7 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(741): Illuminate\Database\Eloquent\Builder->getModels()

8 /var/www/html/cms-laravel/app/Http/Livewire/Homepage.php(19): Illuminate\Database\Eloquent\Builder->get()

9 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Http\Livewire\Homepage->mount()

10 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()

11 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()

12 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()

13 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Wrapped.php(23): Illuminate\Container\BoundMethod::call()

14 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportLifecycleHooks/SupportLifecycleHooks.php(134): Livewire\Wrapped->__call()

15 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportLifecycleHooks/SupportLifecycleHooks.php(20): Livewire\Features\SupportLifecycleHooks\SupportLifecycleHooks->callHook()

16 /var/www/html/cms-laravel/vendor/livewire/livewire/src/ComponentHook.php(19): Livewire\Features\SupportLifecycleHooks\SupportLifecycleHooks->mount()

17 /var/www/html/cms-laravel/vendor/livewire/livewire/src/ComponentHookRegistry.php(45): Livewire\ComponentHook->callMount()

18 /var/www/html/cms-laravel/vendor/livewire/livewire/src/EventBus.php(60): Livewire\ComponentHookRegistry::Livewire\{closure}()

19 /var/www/html/cms-laravel/vendor/livewire/livewire/src/helpers.php(98): Livewire\EventBus->trigger()

20 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(50): Livewire\trigger()

21 /var/www/html/cms-laravel/vendor/livewire/livewire/src/LivewireManager.php(73): Livewire\Mechanisms\HandleComponents\HandleComponents->mount()

22 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportPageComponents/HandlesPageComponents.php(17): Livewire\LivewireManager->mount()

23 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportPageComponents/SupportPageComponents.php(117): Livewire\Component->Livewire\Features\SupportPageComponents\{closure}()

24 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportPageComponents/HandlesPageComponents.php(14): Livewire\Features\SupportPageComponents\SupportPageComponents::interceptTheRenderOfTheComponentAndRetreiveTheLayoutConfiguration()

25 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(46): Livewire\Component->__invoke()

26 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch()

27 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Route.php(206): Illuminate\Routing\Route->runController()

28 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(808): Illuminate\Routing\Route->run()

29 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}()

30 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

31 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle()

32 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(88): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

33 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()

34 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

35 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\View\Middleware\ShareErrorsFromSession->handle()

36 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

37 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest()

38 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Session\Middleware\StartSession->handle()

39 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

40 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()

41 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(75): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

42 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Cookie\Middleware\EncryptCookies->handle()

43 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

44 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(807): Illuminate\Pipeline\Pipeline->then()

45 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(786): Illuminate\Routing\Router->runRouteWithinStack()

46 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(750): Illuminate\Routing\Router->runRoute()

47 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(739): Illuminate\Routing\Router->dispatchToRoute()

48 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch()

49 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()

50 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

51 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware->handle()

52 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

53 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

54 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()

55 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

56 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(51): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

57 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()

58 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

59 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\ValidatePostSize->handle()

60 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(110): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

61 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()

62 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

63 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle()

64 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

65 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle()

66 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

67 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then()

68 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()

69 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php(578): Illuminate\Foundation\Http\Kernel->handle()

70 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php(339): Illuminate\Foundation\Testing\TestCase->call()

71 /var/www/html/cms-laravel/tests/Feature/ExampleTest.php(15): Illuminate\Foundation\Testing\TestCase->get()

72 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestCase.php(1201): Tests\Feature\ExampleTest->test_the_application_returns_a_successful_response()

73 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestCase.php(498): PHPUnit\Framework\TestCase->runTest()

74 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestRunner/TestRunner.php(84): PHPUnit\Framework\TestCase->runBare()

75 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestCase.php(349): PHPUnit\Framework\TestRunner->run()

76 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestSuite.php(408): PHPUnit\Framework\TestCase->run()

77 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestSuite.php(408): PHPUnit\Framework\TestSuite->run()

78 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestSuite.php(408): PHPUnit\Framework\TestSuite->run()

79 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(62): PHPUnit\Framework\TestSuite->run()

80 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/TextUI/Application.php(201): PHPUnit\TextUI\TestRunner->run()

81 /var/www/html/cms-laravel/vendor/phpunit/phpunit/phpunit(104): PHPUnit\TextUI\Application->run()

82 /var/www/html/cms-laravel/vendor/bin/phpunit(122): include('...')

83 {main}

[previous exception] [object] (PDOException(code: 1045): SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) at /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:65) [stacktrace]

0 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(65): PDO->__construct()

1 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php(44): Illuminate\Database\Connectors\Connector->createPdoConnection()

2 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/MySqlConnector.php(24): Illuminate\Database\Connectors\Connector->createConnection()

3 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connectors/ConnectionFactory.php(185): Illuminate\Database\Connectors\MySqlConnector->connect()

4 [internal function]: Illuminate\Database\Connectors\ConnectionFactory->Illuminate\Database\Connectors\{closure}()

5 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1219): call_user_func()

6 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(1255): Illuminate\Database\Connection->getPdo()

7 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(512): Illuminate\Database\Connection->getReadPdo()

8 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(407): Illuminate\Database\Connection->getPdoForSelect()

9 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(800): Illuminate\Database\Connection->Illuminate\Database\{closure}()

10 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(767): Illuminate\Database\Connection->runQueryCallback()

11 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Connection.php(398): Illuminate\Database\Connection->run()

12 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2996): Illuminate\Database\Connection->select()

13 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2981): Illuminate\Database\Query\Builder->runSelect()

14 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3569): Illuminate\Database\Query\Builder->Illuminate\Database\Query\{closure}()

15 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2980): Illuminate\Database\Query\Builder->onceWithColumns()

16 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(759): Illuminate\Database\Query\Builder->get()

17 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(741): Illuminate\Database\Eloquent\Builder->getModels()

18 /var/www/html/cms-laravel/app/Http/Livewire/Homepage.php(19): Illuminate\Database\Eloquent\Builder->get()

19 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): App\Http\Livewire\Homepage->mount()

20 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()

21 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()

22 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()

23 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Wrapped.php(23): Illuminate\Container\BoundMethod::call()

24 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportLifecycleHooks/SupportLifecycleHooks.php(134): Livewire\Wrapped->__call()

25 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportLifecycleHooks/SupportLifecycleHooks.php(20): Livewire\Features\SupportLifecycleHooks\SupportLifecycleHooks->callHook()

26 /var/www/html/cms-laravel/vendor/livewire/livewire/src/ComponentHook.php(19): Livewire\Features\SupportLifecycleHooks\SupportLifecycleHooks->mount()

27 /var/www/html/cms-laravel/vendor/livewire/livewire/src/ComponentHookRegistry.php(45): Livewire\ComponentHook->callMount()

28 /var/www/html/cms-laravel/vendor/livewire/livewire/src/EventBus.php(60): Livewire\ComponentHookRegistry::Livewire\{closure}()

29 /var/www/html/cms-laravel/vendor/livewire/livewire/src/helpers.php(98): Livewire\EventBus->trigger()

30 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Mechanisms/HandleComponents/HandleComponents.php(50): Livewire\trigger()

31 /var/www/html/cms-laravel/vendor/livewire/livewire/src/LivewireManager.php(73): Livewire\Mechanisms\HandleComponents\HandleComponents->mount()

32 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportPageComponents/HandlesPageComponents.php(17): Livewire\LivewireManager->mount()

33 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportPageComponents/SupportPageComponents.php(117): Livewire\Component->Livewire\Features\SupportPageComponents\{closure}()

34 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportPageComponents/HandlesPageComponents.php(14): Livewire\Features\SupportPageComponents\SupportPageComponents::interceptTheRenderOfTheComponentAndRetreiveTheLayoutConfiguration()

35 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(46): Livewire\Component->__invoke()

36 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate\Routing\ControllerDispatcher->dispatch()

37 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Route.php(206): Illuminate\Routing\Route->runController()

38 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(808): Illuminate\Routing\Route->run()

39 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Routing\Router->Illuminate\Routing\{closure}()

40 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

41 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Routing\Middleware\SubstituteBindings->handle()

42 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(88): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

43 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle()

44 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

45 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\View\Middleware\ShareErrorsFromSession->handle()

46 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

47 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest()

48 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Session\Middleware\StartSession->handle()

49 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

50 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle()

51 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(75): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

52 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Cookie\Middleware\EncryptCookies->handle()

53 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

54 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(807): Illuminate\Pipeline\Pipeline->then()

55 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(786): Illuminate\Routing\Router->runRouteWithinStack()

56 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(750): Illuminate\Routing\Router->runRoute()

57 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Routing/Router.php(739): Illuminate\Routing\Router->dispatchToRoute()

58 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(200): Illuminate\Routing\Router->dispatch()

59 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(144): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}()

60 /var/www/html/cms-laravel/vendor/livewire/livewire/src/Features/SupportDisablingBackButtonCache/DisableBackButtonCacheMiddleware.php(19): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

61 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Livewire\Features\SupportDisablingBackButtonCache\DisableBackButtonCacheMiddleware->handle()

62 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

63 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

64 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle()

65 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

66 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(51): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle()

67 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\TrimStrings->handle()

68 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

69 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\ValidatePostSize->handle()

70 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(110): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

71 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle()

72 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Http/Middleware/HandleCors.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

73 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\HandleCors->handle()

74 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

75 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(183): Illuminate\Http\Middleware\TrustProxies->handle()

76 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(119): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()

77 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(175): Illuminate\Pipeline\Pipeline->then()

78 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(144): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter()

79 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php(578): Illuminate\Foundation\Http\Kernel->handle()

80 /var/www/html/cms-laravel/vendor/laravel/framework/src/Illuminate/Foundation/Testing/Concerns/MakesHttpRequests.php(339): Illuminate\Foundation\Testing\TestCase->call()

81 /var/www/html/cms-laravel/tests/Feature/ExampleTest.php(15): Illuminate\Foundation\Testing\TestCase->get()

82 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestCase.php(1201): Tests\Feature\ExampleTest->test_the_application_returns_a_successful_response()

83 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestCase.php(498): PHPUnit\Framework\TestCase->runTest()

84 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestRunner/TestRunner.php(84): PHPUnit\Framework\TestCase->runBare()

85 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestCase.php(349): PHPUnit\Framework\TestRunner->run()

86 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestSuite.php(408): PHPUnit\Framework\TestCase->run()

87 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestSuite.php(408): PHPUnit\Framework\TestSuite->run()

88 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/Framework/TestSuite.php(408): PHPUnit\Framework\TestSuite->run()

89 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(62): PHPUnit\Framework\TestSuite->run()

90 /var/www/html/cms-laravel/vendor/phpunit/phpunit/src/TextUI/Application.php(201): PHPUnit\TextUI\TestRunner->run()

91 /var/www/html/cms-laravel/vendor/phpunit/phpunit/phpunit(104): PHPUnit\TextUI\Application->run()

92 /var/www/html/cms-laravel/vendor/bin/phpunit(122): include('...')

93 {main}

"}

sweep-ai[bot] commented 4 months ago
Sweeping

0%
💎 Sweep Pro: You have unlimited Sweep issues

Actions


[!TIP] To recreate the pull request, edit the issue title or description.

curtisdelicata commented 3 months ago

Is .env.testing setup correctly?

curtisdelicata commented 3 months ago

Will remove phpunit from setup.sh