Projet

Général

Profil

Révision c304a780

Ajouté par Assos Assos il y a environ 6 ans

Weekly update of contrib modules

Voir les différences:

drupal7/sites/all/modules/honeypot/honeypot.test
366 366
    // Revert the honeypot element name back to the original.
367 367
    variable_set('honeypot_element_name', $original_element_name);
368 368
  }
369

  
370
  /**
371
   * Test CSS works when default file scheme is not public://
372
   */
373
  public function testHoneypotCssNonpublicFileSystem() {
374
    variable_set('file_default_scheme', 'private');
375

  
376
    $honeypot_css = honeypot_get_css_file_path();
377

  
378
    // Delete the Honeypot CSS file (if it exists).
379
    file_unmanaged_delete($honeypot_css);
380

  
381
    // Make sure the Honeypot CSS file doesn't exist.
382
    $this->assertFalse(file_exists($honeypot_css));
383

  
384
    // Run cron.
385
    honeypot_cron();
386

  
387
    // Make sure the Honeypot CSS file exists.
388
    $this->assertTrue(file_exists($honeypot_css));
389
  }
369 390
}
370 391

  
371 392
/**

Formats disponibles : Unified diff