-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cant set session $this->session->userdata #408
Comments
What is As far as I know,
I don't get what is a protected method you say. You do not need to test protect methods in general. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hey, i want to make a test on a protected method of a controller
the test:
the $output returns null.
the ticket controllers extends backend_controller
the backen_controller:
when i add 'ticket/edit' to $exception_uris.
the error is: RuntimeException : Trying to access array offset on value of type null on line 189 in file C:\laragon\www\new-smart\application\models\user\User_m.php
│
│ C:\laragon\www\new-smart\application\tests_ci_phpunit_test\CIPHPUnitTestCase.php:184
│ C:\laragon\www\new-smart\application\models\user\User_m.php:189
│ C:\laragon\www\new-smart\application\libraries\Backend_controller.php:82
user_m snippet:
the ticket snippet:
it seems the backend_controller cant get access to $this->session->userdata.
how do i set the $this->session->userdata in my test so i can access my protected controller?
The text was updated successfully, but these errors were encountered: