Projet

Général

Profil

Révision cd5c298a

Ajouté par Geoffroy Desvernay il y a plus de 5 ans

MAJ 7.60 -> 7.62

Voir les différences:

drupal7/modules/system/system.test
1944 1944
    $this->assertEqual($elements[0]['src'], file_create_url($uploaded_filename));
1945 1945
  }
1946 1946

  
1947

  
1948
  /**
1949
   * Test the individual per-theme settings form.
1950
   */
1951
  function testPerThemeSettings() {
1952
    // Enable the test theme and the module that controls it. Clear caches in
1953
    // between so that the module's hook_system_theme_info() implementation is
1954
    // correctly registered.
1955
    module_enable(array('theme_test'));
1956
    drupal_flush_all_caches();
1957
    theme_enable(array('test_theme'));
1958

  
1959
    // Test that the theme-specific settings form can be saved and that the
1960
    // theme-specific checkbox is checked and unchecked as appropriate.
1961
    $this->drupalGet('admin/appearance/settings/test_theme');
1962
    $this->assertNoFieldChecked('edit-test-theme-checkbox', 'The test_theme_checkbox setting is unchecked.');
1963
    $this->drupalPost(NULL, array('test_theme_checkbox' => TRUE), t('Save configuration'));
1964
    $this->assertText('The test theme setting was saved.');
1965
    $this->assertFieldChecked('edit-test-theme-checkbox', 'The test_theme_checkbox setting is checked.');
1966
    $this->drupalPost(NULL, array('test_theme_checkbox' => FALSE), t('Save configuration'));
1967
    $this->assertText('The test theme setting was saved.');
1968
    $this->assertNoFieldChecked('edit-test-theme-checkbox', 'The test_theme_checkbox setting is unchecked.');
1969
  }
1970

  
1947 1971
  /**
1948 1972
   * Test the administration theme functionality.
1949 1973
   */

Formats disponibles : Unified diff