Jump to content

ATK Testing: Difference between revisions

From NusaATK
No edit summary
No edit summary
 
Line 1: Line 1:
Unit testing
ATK supports Unit testing, for a basic introduction to creating testcases please see the [[ATK_Howtos|howto]]: [[Writing_tests]].


===Database===
To test interaction with the database you can use the following two methods:<br />
[[Using a test database]]<br />
* [[Using a test database]]
[[Using_atkMockDb|Using atkMockDb]]
* [[Using atkMockDb]]
 
To test rights you can [[Using atkMockSecurityManager|use the atkMockSecurityManager]].<br />
To fake a node you can [[Using atkMockNode|use the atkMockNode]].

Latest revision as of 11:42, 9 January 2008

ATK supports Unit testing, for a basic introduction to creating testcases please see the howto: Writing_tests.

To test interaction with the database you can use the following two methods:

To test rights you can use the atkMockSecurityManager.
To fake a node you can use the atkMockNode.