-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Error when called from phpunit #1569
Comments
How is Ion Auth loaded in your Base_Controller during testing? What if so load ion auth in the stream class? |
The ion_auth is loaded from autoload.php
|
What else have you tried to troubleshoot this? What if you manually load the package in this controller? |
Yes, I tried to manually load the library in the Stream class constructor...
In the log file I see -
But when I am trying the delete from the UI I get:
|
Hmm maybe try loading the model directly in the controller? |
Tried that too. The error goes away but the groups didn't get deleted in the following code -
|
Try adding some logging at each step there that way. Eg, does the model actually get called even if there's no error, does the DB query run, etc |
@benedmunds I notice the last commit on the library around 6 or 7 months ago we are using it regularly I am worried are you people maintaining it in the future. |
Hey @akashposin , I’m still actively maintaining this but it’s fairly stable after all of these years and I don’t have any new features planned. |
Which branch are you using?
3
What commit hash are you on?
I am not sure
What CodeIgniter version are you using?
3.1.9
What PHP version are you using?
PHP 7.2.33
Post your Ion Auth config below
Describe the bug
This works from the UI but throws the following error when called from phpunit test.
Message: Undefined property: Stream::$ion_auth_model on line 129 in file C:\......\application\third_party\ion_auth\libraries\Ion_auth.php
The text was updated successfully, but these errors were encountered: