1.20.x layout.test protected LayoutBlockUsageTestCase::checkBlockNoUsage($delta, $layout, $position)

Checks block not in usage.

File

modules/layout/tests/layout.test, line 2893
Tests for the Layout module.

Class

LayoutBlockUsageTestCase
Tests layout_get_block_usage().

Code

protected function checkBlockNoUsage($delta, $layout, $position) {
  backdrop_static_reset('layout_get_block_usage');
  layout_reset_caches();
  module_load_include('inc', 'layout', 'layout.admin');
  $usage = layout_get_block_usage();
  $this->assertFalse(isset($usage[$delta][$layout][$position]), 'Block usage returned correctly. Block not found in array.');
  return TRUE;
}