can't make CIUnit and active record to work together. |
[eluser]Unknown[/eluser]
Hi, i am new to unit testing and codeigniter, so i may be doing something very wrong, but it is already a second day in frustration to make CIUnit and Active Record work together, so i need help. I am using this https://bitbucket.org/kenjis/my-ciunit for testing, running tests trough terminal and it is doing fine as long as i use regular Codeigniter Models. However, the troubles starts when i create an active record model and try to load it in my unit tests like so: Code: $this->CI->load->model('User'); I recieve "Class 'ActiveRecord\Model' not found" (Model class extends ActiveRecord\Model), so i suppose it is some kind of loading problem. It would be great if someone have done something similar and can help me. Thanks |
Welcome Guest, Not a member yet? Register Sign In |