Projet

Général

Profil

Révision feca1e4a

Ajouté par Assos Assos il y a presque 7 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/webform/tests/WebformComponentsTestCase.test
4 4
 * @file
5 5
 * Webform module component tests.
6 6
 */
7

  
8
/**
9
 *
10
 */
7 11
class WebformComponentsTestCase extends WebformTestCase {
12

  
8 13
  /**
9 14
   * {@inheritdoc}
10 15
   */
......
19 24
  /**
20 25
   * Webform module component tests.
21 26
   */
22
  function testWebformComponents() {
27
  public function testWebformComponents() {
23 28
    // Test webform_component_list().
24 29
    // Create a form consisting of three textfields separated by pagebreaks.
25 30
    $test_components = $this->webformComponents();
......
120 125
    $test_parents = array($components[1], $components[2], $components[3]);
121 126
    $this->assertIdentical($parents, $test_parents, 'webform_component_parent_keys() returns expected component arrays.');
122 127

  
123

  
124 128
    // Test webform_get_cid().
125 129
    $settings = array(
126 130
      'title' => 'Test webform with multiple instances of a Form Key',
......
177 181
    // Test webform_get_cid() without providing a parent cid.
178 182
    $this->assertTrue(webform_get_cid($node, 'testing_key') == array(1, 3), t('Returned expected Webform component ids array for a given form_key.'));
179 183

  
180

  
181 184
    // Create and visit a new Webform test node.
182 185
    $node = $this->webformForm();
183 186
    $this->drupalGet('node/' . $node->nid);
......
189 192
      $this->assertTrue($for, 'Label with @for "' . $label['for'] . '" points to an element.');
190 193
    }
191 194
  }
195

  
192 196
}

Formats disponibles : Unified diff