Projet

Général

Profil

Révision 8e7483ab

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

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/link/tests/link.token.test
23 23
  }
24 24

  
25 25
  /**
26
   * Setup.
26
   * {@inheritdoc}
27 27
   */
28
  public function setUp($modules = array()) {
29
    parent::setUp(array('token'));
28
  public function setUp(array $modules = array()) {
29
    $modules[] = 'token';
30
    parent::setUp($modules);
30 31
  }
31 32

  
32 33
  /**
......
77 78
   * Creates a node with a link and checks the title value.
78 79
   */
79 80
  public function testStaticTokenLinkCreate() {
80

  
81 81
    // Create field.
82 82
    $name = $this->randomName();
83 83
    $settings = array(
......
122 122
   * same.
123 123
   */
124 124
  public function testStaticTokenLinkCreate2() {
125

  
126 125
    // Create field.
127 126
    $name = $this->randomName();
128 127
    $settings = array(
......
162 161
   *
163 162
   * @codingStandardsIgnoreStart
164 163
   */
165
  public function _test_Link_With_Title_Attribute_token_url_form() {
166
    // @codingStandardsIgnoreEnd
164
  public function xTestLinkWithTitleAttributeTokenUrlForm() {
167 165
    /* $this->loginWithPermissions($this->permissions);
168 166
    $this->acquireContentTypes(1);
169 167
    $field_settings = array(
......
190 188
    $this->drupalPost('admin/content/node-type/'. $url_type .'/fields/'. $field['field_name'],
191 189
    $edit, t('Save field settings'));
192 190
    $this->assertText(t('Saved field @field_name', array('@field_name' => $field['field_name'])));*/
191
    // @codingStandardsIgnoreEnd
193 192
    $name = $this->randomName();
194 193
    $settings = array(
195 194
      'instance[settings][attributes][rel]' => 'nofollow',
......
232 231
   *
233 232
   * @codingStandardsIgnoreStart
234 233
   */
235
  public function _test_Link_With_Title_Attribute_token_title_form() {
234
  public function xTestLinkWithTitleAttributeTokenTitleForm() {
236 235
    // @codingStandardsIgnoreEnd
237 236
    $this->loginWithPermissions($this->permissions);
238 237
    $this->acquireContentTypes(1);
......
290 289

  
291 290
  /**
292 291
   * Trying to set the url to contain a token.
293
   *
294
   * @codingStandardsIgnoreStart
295 292
   */
296
  public function _testUserTokenLinkCreateInURL() {
297
    //@codingStandardsIgnoreEnd
298

  
293
  public function xTestUserTokenLinkCreateInUrl() {
299 294
    $this->web_user = $this->drupalCreateUser(array(
300 295
      'administer content types',
301 296
      'administer fields',
......
353 348

  
354 349
  /**
355 350
   * Trying to set the url to contain a token.
356
   *
357
   * @codingStandardsIgnoreStart
358 351
   */
359
  public function _testUserTokenLinkCreateInURL2() {
360
    // @codingStandardsIgnoreEnd
361

  
352
  public function xTestUserTokenLinkCreateInUrl2() {
362 353
    $this->web_user = $this->drupalCreateUser(array(
363 354
      'administer content types',
364 355
      'administer fields',

Formats disponibles : Unified diff