Example: Simpletest

  1. examples
    1. 6 simpletest_example/simpletest_example.module
    2. 7 simpletest_example/simpletest_example.module
    3. 8 simpletest_example/simpletest_example.module

An example of simpletest tests to accompany the tutorial at http://drupal.org/node/890654.

This is built on a traditional node-type implementation.

Functions & methods

NameDescription
simpletest_example_empty_mysql_dateA simple self-contained function used to demonstrate unit tests.
simpletest_example_formImplements hook_form().
simpletest_example_menuImplements hook_menu().
simpletest_example_node_accessImplements hook_node_access().
simpletest_example_node_infoImplements hook_node_info().
simpletest_example_permissionImplements hook_permission().
_simpletest_example_explanationReturns an explanation of this module.

File

simpletest_example/simpletest_example.module, line 8
Module file for simpletest_example

Login or register to post comments