You are here

public function FeaturesExtraBlockTestCase::testBlockRevert in Features Extra 7

Test if custom blocks can be reverted and that overrides are detected.

File

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

Class

FeaturesExtraBlockTestCase
Tests the functionality of FE Block.

Code

public function testBlockRevert() {

  // Ensure that the exported custom block is properly available.
  $bid = fe_block_get_bid('features_extra_test_block');
  $this->block = block_load('block', $bid);
  $this
    ->assertTrue(!empty($this->block), 'The reverted block is present.');
  $components = array(
    'fe_block_boxes',
    'fe_block_settings',
  );
  $this
    ->revertComponents($components);
}