Jump to content

ATK Testing: Difference between revisions

From NusaATK
No edit summary
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Example of creating tests: [[Using a test database]]
ATK supports Unit testing, for a basic introduction to creating testcases please see the [[ATK_Howtos|howto]]: [[Writing_tests]].
 
To test interaction with the database you can use the following two methods:<br />
* [[Using a test database]]
* [[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.