Added consultation_user_terms table #322
test-cc.yml
on: pull_request
phpunit-code-coverage
2m 8s
Annotations
10 errors and 2 warnings
phpunit-code-coverage:
tests/APIs/ConsultationApiTest.php#L240
Error: Call to undefined method EscolaLms/Consultations/Tests/APIs/ConsultationApiTest::format()
|
phpunit-code-coverage:
tests/APIs/ConsultationChangeTermTest.php#L43
ErrorException: Attempt to read property "executed_at" on null
|
phpunit-code-coverage:
tests/APIs/ConsultationChangeTermTest.php#L59
ErrorException: Attempt to read property "executed_at" on null
|
phpunit-code-coverage:
tests/APIs/ConsultationGenerateJitsiTest.php#L74
Expected response status code [200] but received 422.
Failed asserting that 200 is identical to 422.
The following errors occurred during the last request:
{
"message": "The consultation user term not found",
"errors": {
"term": [
"The consultation user term not found"
]
}
}
|
phpunit-code-coverage:
tests/APIs/ConsultationGenerateJitsiTest.php#L103
Expected response status code [404] but received 422.
Failed asserting that 404 is identical to 422.
The following errors occurred during the last request:
{
"message": "The consultation user term not found",
"errors": {
"term": [
"The consultation user term not found"
]
}
}
|
phpunit-code-coverage:
tests/APIs/ConsultationGenerateJitsiTest.php#L118
Expected response status code [404] but received 422.
Failed asserting that 404 is identical to 422.
The following errors occurred during the last request:
{
"message": "The consultation user term not found",
"errors": {
"term": [
"The consultation user term not found"
]
}
}
|
phpunit-code-coverage:
tests/APIs/ConsultationReportTermTest.php#L62
Failed asserting that false is true.
|
phpunit-code-coverage:
tests/APIs/ConsultationReportTermTest.php#L125
Failed asserting that false is true.
|
phpunit-code-coverage:
tests/APIs/ConsultationReportTermTest.php#L200
The expected [EscolaLms/Consultations/Events/ApprovedTerm] event was not dispatched.
Failed asserting that false is true.
The following exception occurred during the last request:
Error: Typed property EscolaLms/Consultations/Dto/ConsultationUserTermDto::$forAllUsers must not be accessed before initialization in src/Dto/ConsultationUserTermDto.php:27
Stack trace:
#0 src/Services/ConsultationService.php(170): EscolaLms/Consultations/Dto/ConsultationUserTermDto->getForAllUsers()
#1 src/Http/Controllers/ConsultationAPIController.php(76): EscolaLms/Consultations/Services/ConsultationService->approveTerm(28, Object(EscolaLms/Consultations/Dto/ConsultationUserTermDto))
#2 vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): EscolaLms/Consultations/Http/Controllers/ConsultationAPIController->approveTerm(Object(EscolaLms/Consultations/Http/Requests/ConsultationUserTermRequest), 28)
#3 vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate/Routing/Controller->callAction('approveTerm', Array)
#4 vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate/Routing/ControllerDispatcher->dispatch(Object(Illuminate/Routing/Route), Object(EscolaLms/Consultations/Http/Controllers/ConsultationAPIController), 'approveTerm')
#5 vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate/Routing/Route->runController()
#6 vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate/Routing/Route->run()
#7 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate/Routing/Router->Illuminate/Routing/{closure}(Object(Illuminate/Http/Request))
#8 vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#9 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate/Auth/Middleware/Authenticate->handle(Object(Illuminate/Http/Request), Object(Closure), 'api')
#10 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#11 vendor/laravel/framework/src/Illuminate/Routing/Router.php(797): Illuminate/Pipeline/Pipeline->then(Object(Closure))
#12 vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate/Routing/Router->runRouteWithinStack(Object(Illuminate/Routing/Route), Object(Illuminate/Http/Request))
#13 vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate/Routing/Router->runRoute(Object(Illuminate/Http/Request), Object(Illuminate/Routing/Route))
#14 vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate/Routing/Router->dispatchToRoute(Object(Illuminate/Http/Request))
#15 vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate/Routing/Router->dispatch(Object(Illuminate/Http/Request))
#16 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate/Foundation/Http/Kernel->Illuminate/Foundation/Http/{closure}(Object(Illuminate/Http/Request))
#17 vendor/escolalms/core/src/Http/Middleware/SetTimezoneForUserMiddleware.php(21): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#18 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): EscolaLms/Core/Http/Middleware/SetTimezoneForUserMiddleware->handle(Object(Illuminate/Http/Request), Object(Closure))
#19 vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#20 vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate/Foundation/Http/Middleware/TransformsRequest->handle(Object(Illuminate/Http/Request), Object(Closure))
#21 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull->handle(Object(Illuminate/Http/Request), Object(Closure))
#22 v
|
phpunit-code-coverage:
tests/APIs/ConsultationReportTermTest.php#L262
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: Typed property EscolaLms/Consultations/Dto/ConsultationUserTermDto::$forAllUsers must not be accessed before initialization in src/Dto/ConsultationUserTermDto.php:27
Stack trace:
#0 src/Services/ConsultationService.php(170): EscolaLms/Consultations/Dto/ConsultationUserTermDto->getForAllUsers()
#1 src/Http/Controllers/ConsultationAPIController.php(76): EscolaLms/Consultations/Services/ConsultationService->approveTerm(29, Object(EscolaLms/Consultations/Dto/ConsultationUserTermDto))
#2 vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): EscolaLms/Consultations/Http/Controllers/ConsultationAPIController->approveTerm(Object(EscolaLms/Consultations/Http/Requests/ConsultationUserTermRequest), 29)
#3 vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(43): Illuminate/Routing/Controller->callAction('approveTerm', Array)
#4 vendor/laravel/framework/src/Illuminate/Routing/Route.php(259): Illuminate/Routing/ControllerDispatcher->dispatch(Object(Illuminate/Routing/Route), Object(EscolaLms/Consultations/Http/Controllers/ConsultationAPIController), 'approveTerm')
#5 vendor/laravel/framework/src/Illuminate/Routing/Route.php(205): Illuminate/Routing/Route->runController()
#6 vendor/laravel/framework/src/Illuminate/Routing/Router.php(798): Illuminate/Routing/Route->run()
#7 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate/Routing/Router->Illuminate/Routing/{closure}(Object(Illuminate/Http/Request))
#8 vendor/laravel/framework/src/Illuminate/Auth/Middleware/Authenticate.php(44): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#9 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate/Auth/Middleware/Authenticate->handle(Object(Illuminate/Http/Request), Object(Closure), 'api')
#10 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(116): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#11 vendor/laravel/framework/src/Illuminate/Routing/Router.php(797): Illuminate/Pipeline/Pipeline->then(Object(Closure))
#12 vendor/laravel/framework/src/Illuminate/Routing/Router.php(776): Illuminate/Routing/Router->runRouteWithinStack(Object(Illuminate/Routing/Route), Object(Illuminate/Http/Request))
#13 vendor/laravel/framework/src/Illuminate/Routing/Router.php(740): Illuminate/Routing/Router->runRoute(Object(Illuminate/Http/Request), Object(Illuminate/Routing/Route))
#14 vendor/laravel/framework/src/Illuminate/Routing/Router.php(729): Illuminate/Routing/Router->dispatchToRoute(Object(Illuminate/Http/Request))
#15 vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(190): Illuminate/Routing/Router->dispatch(Object(Illuminate/Http/Request))
#16 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(141): Illuminate/Foundation/Http/Kernel->Illuminate/Foundation/Http/{closure}(Object(Illuminate/Http/Request))
#17 vendor/escolalms/core/src/Http/Middleware/SetTimezoneForUserMiddleware.php(21): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#18 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): EscolaLms/Core/Http/Middleware/SetTimezoneForUserMiddleware->handle(Object(Illuminate/Http/Request), Object(Closure))
#19 vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate/Pipeline/Pipeline->Illuminate/Pipeline/{closure}(Object(Illuminate/Http/Request))
#20 vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate/Foundation/Http/Middleware/TransformsRequest->handle(Object(Illuminate/Http/Request), Object(Closure))
#21 vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(180): Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull->handle(Object(Illuminate/Http/Request), Object(Closure))
#22 vendor/laravel/framewo
|
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/
|