Unit tests are Used for testing lower level functionality, like a method or class..
Constructor
MVC.Test.Unit
new MVC.Test.Unit(controller_name, tests) -> Test
Creates a new unit test case. A test case is a collection of test functions and helpers.
- The className of the correspoinding controller you are testing.
- An object with test functions. Functions that begin with
test_ will be run as tests. Functions that don't begin with test are converted to helper
functions. Do not name helper functions the same name as the test provided helpers and assertions such as
assert or assertEqual as your functions will override these functions.