Projet

Général

Profil

Révision 4444412d

Ajouté par Julien Enselme il y a presque 10 ans

Update drupal 7.27 -> 7.28

Voir les différences:

drupal7/modules/simpletest/tests/common.test
1022 1022
    $result = drupal_http_request($auth);
1023 1023

  
1024 1024
    $this->drupalSetContent($result->data);
1025
    $this->assertRaw($username, '$_SERVER["PHP_AUTH_USER"] is passed correctly.');
1026
    $this->assertRaw($password, '$_SERVER["PHP_AUTH_PW"] is passed correctly.');
1025
    $this->assertRaw($username, 'Username is passed correctly.');
1026
    $this->assertRaw($password, 'Password is passed correctly.');
1027 1027
  }
1028 1028

  
1029 1029
  function testDrupalHTTPRequestRedirect() {
......
2785 2785
    $this->assertIdentical(drupal_array_diff_assoc_recursive($this->array1, $this->array2), $expected);
2786 2786
  }
2787 2787
}
2788

  
2789
/**
2790
 * Tests the functionality of drupal_get_query_array().
2791
 */
2792
class DrupalGetQueryArrayTestCase extends DrupalWebTestCase {
2793

  
2794
  public static function getInfo() {
2795
    return array(
2796
      'name' => 'Query parsing using drupal_get_query_array()',
2797
      'description' => 'Tests that drupal_get_query_array() correctly parses query parameters.',
2798
      'group' => 'System',
2799
    );
2800
  }
2801

  
2802
  /**
2803
   * Tests that drupal_get_query_array() correctly explodes query parameters.
2804
   */
2805
  public function testDrupalGetQueryArray() {
2806
    $url = "http://my.site.com/somepath?foo=/content/folder[@name='foo']/folder[@name='bar']";
2807
    $parsed = parse_url($url);
2808
    $result = drupal_get_query_array($parsed['query']);
2809
    $this->assertEqual($result['foo'], "/content/folder[@name='foo']/folder[@name='bar']", 'drupal_get_query_array() should only explode parameters on the first equals sign.');
2810
  }
2811

  
2812
}

Formats disponibles : Unified diff