Projet

Général

Profil

Révision 27e02aed

Ajouté par Assos Assos il y a plus de 4 ans

-a

Voir les différences:

drupal7/modules/simpletest/tests/theme.test
238 238
    $this->assertNoRaw('class="odd"', 'Odd/even classes were not added because $no_striping = TRUE.');
239 239
    $this->assertNoRaw('no_striping', 'No invalid no_striping HTML attribute was printed.');
240 240
  }
241

  
242
  /**
243
   * Test that the 'footer' option works correctly.
244
   */
245
  function testThemeTableFooter() {
246
    $footer = array(
247
      array(
248
        'data' => array(1),
249
      ),
250
      array('Foo'),
251
    );
252

  
253
    $table = array(
254
      'rows' => array(),
255
      'footer' => $footer,
256
    );
257

  
258
    $this->content = theme('table', $table);
259
    $this->content = preg_replace('@>\s+<@', '><', $this->content);
260
    $this->assertRaw('<tfoot><tr><td>1</td></tr><tr><td>Foo</td></tr></tfoot>', 'Table footer found.');
261
  }
241 262
}
242 263

  
243 264
/**

Formats disponibles : Unified diff