Example: Testing
Same name in other branches
- 4.0.x modules/testing_example/testing_example.module \testing_example
This example demonstrates Drupal 8 testing frameworks.
This module creates a new node type called 'Testing Example Node Type,' so that we can test it.
This code was originally written to accompany the tutorial at http://drupal.org/node/890654. That's a Drupal 7 example, but can still teach you much.
Parent topics
File
-
modules/
testing_example/ testing_example.module, line 12
Functions
Title Sort descending | File name | Summary |
---|---|---|
testing_example_node_access | modules/ |
Implements hook_node_access(). |
testing_example_test_node_view | modules/ |
Implements hook_ENTITY_TYPE_view(). |
Classes
Title Sort descending | File name | Summary |
---|---|---|
ExampleFixtureManagementTest | modules/ |
Demonstrate manipulating fixture data in a kernel test. |
SkeletonTest | modules/ |
Skeleton functional test. |
TestingExampleMenuTest | modules/ |
Test the user-facing menus in Testing Example. |