Changes after consultation_user_terms added #54
test-cc.yml
on: pull_request
phpunit-code-coverage
2m 20s
Annotations
10 errors and 2 warnings
phpunit-code-coverage:
tests/Feature/SpaceTitleStrategyTest.php#L46
ErrorException: Attempt to read property "executed_at" on null
|
phpunit-code-coverage:
tests/Feature/SpaceTitleStrategyTest.php#L60
ErrorException: Attempt to read property "executed_at" on null
|
phpunit-code-coverage:
tests/Feature/SpaceTitleStrategyTest.php#L73
ErrorException: Attempt to read property "executed_at" on null
|
phpunit-code-coverage:
tests/Feature/SpaceTitleStrategyTest.php#L85
ErrorException: Attempt to read property "executed_at" on null
|
phpunit-code-coverage:
tests/Feature/SpaceTitleStrategyTest.php#L99
ErrorException: Attempt to read property "executed_at" on null
|
phpunit-code-coverage:
tests/Api/Admin/ConsultationAccessEnquiryAdminApproveApiTest.php#L58
Failed asserting that a row in the table [consultation_user] matches the attributes {
"user_id": 2,
"consultation_id": 1,
"executed_at": "2007-08-01T15:25:45.000000Z",
"executed_status": "approved"
}.
Found similar results: [
{
"user_id": 2,
"consultation_id": 1,
"executed_at": null,
"executed_status": null
}
].
|
phpunit-code-coverage:
tests/Api/Admin/ConsultationAccessEnquiryAdminApproveApiTest.php#L96
Expected response status code [400] but received 200.
Failed asserting that 400 is identical to 200.
|
phpunit-code-coverage:
tests/Api/Admin/ConsultationAccessEnquiryAdminApproveApiTest.php#L118
Expected response status code [400] but received 200.
Failed asserting that 400 is identical to 200.
|
phpunit-code-coverage:
tests/Api/Admin/ConsultationAccessEnquiryAdminListSortApiTest.php#L85
Failed asserting that false is true.
The following exception occurred during the last request:
PDOException: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'consultation_user_terms_executed_at' in 'order clause' in vendor/laravel/framework/src/Illuminate/Database/Connection.php:414
Stack trace:
#0 vendor/laravel/framework/src/Illuminate/Database/Connection.php(414): PDO->prepare('select `consult...')
#1 vendor/laravel/framework/src/Illuminate/Database/Connection.php(753): Illuminate/Database/Connection->Illuminate/Database/{closure}('select `consult...', Array)
#2 vendor/laravel/framework/src/Illuminate/Database/Connection.php(720): Illuminate/Database/Connection->runQueryCallback('select `consult...', Array, Object(Closure))
#3 vendor/laravel/framework/src/Illuminate/Database/Connection.php(422): Illuminate/Database/Connection->run('select `consult...', Array, Object(Closure))
#4 vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2706): Illuminate/Database/Connection->select('select `consult...', Array, true)
#5 vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2694): Illuminate/Database/Query/Builder->runSelect()
#6 vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(3230): Illuminate/Database/Query/Builder->Illuminate/Database/Query/{closure}()
#7 vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php(2695): Illuminate/Database/Query/Builder->onceWithColumns(Array, Object(Closure))
#8 vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(710): Illuminate/Database/Query/Builder->get(Array)
#9 vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(694): Illuminate/Database/Eloquent/Builder->getModels(Array)
#10 vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php(899): Illuminate/Database/Eloquent/Builder->get(Array)
#11 src/Repositories/ConsultationAccessEnquiryRepository.php(36): Illuminate/Database/Eloquent/Builder->paginate(15)
#12 src/Services/ConsultationAccessEnquiryService.php(68): EscolaLms/ConsultationAccess/Repositories/ConsultationAccessEnquiryRepository->findByCriteria(Array, 15, Object(EscolaLms/Core/Dtos/OrderDto))
#13 src/Http/Controllers/Admin/ConsultationAccessEnquiryAdminApiController.php(26): EscolaLms/ConsultationAccess/Services/ConsultationAccessEnquiryService->findAll(Object(EscolaLms/ConsultationAccess/Dtos/CriteriaDto), Object(EscolaLms/ConsultationAccess/Dtos/PageDto), 53, Object(EscolaLms/Core/Dtos/OrderDto))
#14 vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): EscolaLms/ConsultationAccess/Http/Controllers/Admin/ConsultationAccessEnquiryAdminApiController->index(Object(EscolaLms/ConsultationAccess/Http/Requests/Admin/AdminListConsultationAccessEnquiryRequest))
#15 vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate/Routing/Controller->callAction('index', Array)
#16 vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate/Routing/ControllerDispatcher->dispatch(Object(Illuminate/Routing/Route), Object(EscolaLms/ConsultationAccess/Http/Controllers/Admin/ConsultationAccessEnquiryAdminApiController), 'index')
#17 vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate/Routing/Route->runController()
#18 vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate/Routing/Route->run()
#19 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate/Routing/Router->Illuminate/Routing/{closure}(Object(Illuminate/Http/Request))
#20 vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#21 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate/Auth/Middleware/Authenticate->handle(Object(Illuminate/Http/Request), Object(Closure), 'api')
#22 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#23 vendor/laravel/framework/
|
phpunit-code-coverage:
tests/Api/ConsultationAccessEnquiryListApiTest.php#L88
Expected response status code [200] but received 500.
Failed asserting that 200 is identical to 500.
The following exception occurred during the last request:
Error: Call to a member function first() on null in vendor/laravel/framework/src/Illuminate/Http/Resources/CollectsResources.php:34
Stack trace:
#0 vendor/laravel/framework/src/Illuminate/Http/Resources/Json/ResourceCollection.php(53): Illuminate/Http/Resources/Json/ResourceCollection->collectResource(NULL)
#1 vendor/laravel/framework/src/Illuminate/Http/Resources/Json/AnonymousResourceCollection.php(32): Illuminate/Http/Resources/Json/ResourceCollection->__construct(NULL)
#2 vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(79): Illuminate/Http/Resources/Json/AnonymousResourceCollection->__construct(NULL, 'EscolaLms//Consu...')
#3 vendor/escolalms/consultations/src/Http/Resources/ConsultationTermsResource.php(81): Illuminate/Http/Resources/Json/JsonResource::collection(NULL)
#4 vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(95): EscolaLms/Consultations/Http/Resources/ConsultationTermsResource->toArray(Object(Illuminate/Http/Request))
#5 vendor/laravel/framework/src/Illuminate/Http/Resources/Json/JsonResource.php(241): Illuminate/Http/Resources/Json/JsonResource->resolve(Object(Illuminate/Http/Request))
#6 [internal function]: Illuminate/Http/Resources/Json/JsonResource->jsonSerialize()
#7 vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(87): json_encode(Array, 0)
#8 vendor/symfony/http-foundation/JsonResponse.php(51): Illuminate/Http/JsonResponse->setData(Array)
#9 vendor/laravel/framework/src/Illuminate/Http/JsonResponse.php(32): Symfony/Component/HttpFoundation/JsonResponse->__construct(Array, 200, Array, false)
#10 vendor/laravel/framework/src/Illuminate/Routing/ResponseFactory.php(101): Illuminate/Http/JsonResponse->__construct(Array, 200, Array, 0)
#11 vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(338): Illuminate/Routing/ResponseFactory->json(Array, 200)
#12 vendor/escolalms/core/src/Http/Controllers/EscolaLmsBaseController.php(72): Illuminate/Support/Facades/Facade::__callStatic('json', Array)
#13 vendor/escolalms/core/src/Http/Controllers/EscolaLmsBaseController.php(66): EscolaLms/Core/Http/Controllers/EscolaLmsBaseController->sendResponseWithMeta(Array, Array, '')
#14 vendor/escolalms/core/src/Http/Controllers/EscolaLmsBaseController.php(48): EscolaLms/Core/Http/Controllers/EscolaLmsBaseController->sendResponseForWrappedPaginator(Object(Illuminate/Http/Request), Object(Illuminate/Http/Resources/Json/AnonymousResourceCollection), '')
#15 src/Http/Controllers/ConsultationAccessEnquiryApiController.php(30): EscolaLms/Core/Http/Controllers/EscolaLmsBaseController->sendResponseForResource(Object(Illuminate/Http/Resources/Json/AnonymousResourceCollection))
#16 vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): EscolaLms/ConsultationAccess/Http/Controllers/ConsultationAccessEnquiryApiController->index(Object(EscolaLms/ConsultationAccess/Http/Requests/ListConsultationAccessEnquiryRequest))
#17 vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate/Routing/Controller->callAction('index', Array)
#18 vendor/laravel/framework/src/Illuminate/Routing/Route.php(260): Illuminate/Routing/ControllerDispatcher->dispatch(Object(Illuminate/Routing/Route), Object(EscolaLms/ConsultationAccess/Http/Controllers/ConsultationAccessEnquiryApiController), 'index')
#19 vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate/Routing/Route->runController()
#20 vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate/Routing/Route->run()
#21 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate/Routing/Router->Illuminate/Routing/{closure}(Object(Illuminate/Http/Request))
#22 vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#23 vendor/laravel/framework/src/Illuminat
|
phpunit-code-coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
phpunit-code-coverage
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|