You are here

public function FeaturesExtraBlockTestCase::testBlockCacheAlter in Features Extra 7

Tests the integration with the Block Cache Alter module.

See also

http://www.drupal.org/node/1973926

File

tests/fe_block.test, line 101
Tests for the Features Extra Block module.

Class

FeaturesExtraBlockTestCase
Tests the functionality of FE Block.

Code

public function testBlockCacheAlter() {
  $bid = fe_block_get_bid('features_extra_test_block');
  $this->block = block_load('block', $bid);
  $this
    ->assertEqual($this->block->cache, DRUPAL_CACHE_GLOBAL, 'The test block uses the caching method set by the Block Cache Alter module.');
}