Projet

Général

Profil

Révision c9e51f47

Ajouté par Julien Enselme il y a environ 7 ans

Udpate to 7.54

Voir les différences:

drupal7/modules/simpletest/tests/theme.test
646 646
  }
647 647

  
648 648
}
649

  
650
/**
651
 * Tests module-provided theme engines.
652
 */
653
class ModuleProvidedThemeEngineTestCase extends DrupalWebTestCase {
654

  
655
  public static function getInfo() {
656
    return array(
657
      'name' => 'Theme engine test',
658
      'description' => 'Tests module-provided theme engines.',
659
      'group' => 'Theme',
660
    );
661
  }
662

  
663
  function setUp() {
664
    parent::setUp('theme_test');
665
    theme_enable(array('test_theme', 'test_theme_nyan_cat'));
666
  }
667

  
668
  /**
669
   * Ensures that the module provided theme engine is found and used by core.
670
   */
671
  function testEngineIsFoundAndWorking() {
672
    variable_set('theme_default', 'test_theme_nyan_cat');
673
    variable_set('admin_theme', 'test_theme_nyan_cat');
674

  
675
    $this->drupalGet('theme-test/engine-info-test');
676
    $this->assertText('Miaou');
677
  }
678

  
679
}

Formats disponibles : Unified diff