public function HoneypotCssTestCase::testHoneypotCssRegeneration in Honeypot 7
Test CSS file regeneration.
File
- ./honeypot.test, line 321 
- Testing for Honeypot module.
Class
- HoneypotCssTestCase
- Test Honeypot's CSS generation routines.
Code
public function testHoneypotCssRegeneration() {
  $honeypot_css = honeypot_get_css_file_path();
  // Delete the Honeypot CSS file (if it exists).
  file_unmanaged_delete($honeypot_css);
  // Make sure the Honeypot CSS file doesn't exist.
  $this
    ->assertFalse(file_exists($honeypot_css));
  // Create the CSS file.
  honeypot_create_css(variable_get('honeypot_element_name', 'url'));
  // Make sure the Honeypot CSS file exists.
  $this
    ->assertTrue(file_exists($honeypot_css));
}