Welcome Guest, Not a member yet? Register   Sign In
Intended use of the Unit Testing built in to CI
#5

[eluser]Tominator[/eluser]
I now understand you Smile

So you are right - unit test class is utilized inside the user_model. But you can turn it off via:
Code:
$this->unit->active(FALSE);

So you mix your working code with your testing code, and then (or before that) decide if the output should display or not.

Regards,
Tom


Messages In This Thread
Intended use of the Unit Testing built in to CI - by El Forum - 11-09-2010, 08:34 PM
Intended use of the Unit Testing built in to CI - by El Forum - 11-11-2010, 09:38 AM
Intended use of the Unit Testing built in to CI - by El Forum - 11-11-2010, 01:01 PM
Intended use of the Unit Testing built in to CI - by El Forum - 11-11-2010, 01:37 PM
Intended use of the Unit Testing built in to CI - by El Forum - 11-11-2010, 03:51 PM
Intended use of the Unit Testing built in to CI - by El Forum - 11-11-2010, 06:26 PM
Intended use of the Unit Testing built in to CI - by El Forum - 11-12-2010, 03:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB