You are here

public function MostPopularTestCase::testAuthCache in Drupal Most Popular 7

Tests that when Authcache is installed and enabled, the service and interval are not included in rendering the block itself.

File

./mostpopular.test, line 23
Tests for the core mostpopular functionality.

Class

MostPopularTestCase
@file Tests for the core mostpopular functionality.

Code

public function testAuthCache() {
  global $is_page_authcache;
  $is_page_authcache = 1;
  $block = module_invoke('mostpopular', 'block_view', 'mostpopular');
  $compare = theme('mostpopular', array(
    'sid' => 0,
    'iid' => 0,
  ));
  $this
    ->assertEqual($block['content'], $compare);
}