Test runner
The test environment is set up by the t.test()
function, which calls the test function passed as the first argument.
You must surround your test with this boilerplate to integrate correctly into the testing environment:
t.test(function() { // Your test goes here });
function t.test(testFn)
Set up the test environment then run the test, reporting back success or failure via the Plugin Tool.
testFn
is a function which is called with no arguments. The return value is ignored.