home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (components.test)

This example Drupal source code file (components.test) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

array, components, description, extends, function, pass, php, public, remove, setup, static, testwebformdummy, webform, webformtestcase

The components.test Drupal example source code


 * @file
 * Webform module component tests.

include_once(dirname(__FILE__) . '/webform.test');

class WebformComponentsTestCase extends WebformTestCase {
   * Implementation of getInfo().
  public static function getInfo() {
    return array(
      'name' => t('Webform components'),
      'description' => t('Add and remove components from a webform.'),
      'group' => t('Webform'),

   * Implementation of setUp().
  function setUp() {

   * Implementation of testWebformDummy(). if it is not present,
   * then the test runs fine, but when combined with other tests
   * the whole block fails, since there would be no output.
  function testWebformDummy() {
    $this->pass = t('WebformComponentsTest pass.');

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal components.test source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.