protected static $modules =
['node', 'block', 'user', 'field'
];
/**
* Tests that exposed filter blocks have the correct dependencies.
*
* @see \Drupal\views\Plugin\Derivative\ViewsExposedFilterBlock::getDerivativeDefinitions()
*/
public function testExposedBlock() { $block =
$this->
createBlock('views_exposed_filter_block:test_exposed_block-page_1'
);
$dependencies =
$block->
calculateDependencies()->
getDependencies();
$expected =
[ 'config' =>
['views.view.test_exposed_block'
],
'module' =>
['views'
],
'theme' =>
['stark'
],
];
$this->
assertSame($expected,
$dependencies);
} /**
* Tests that exposed filter blocks have the correct dependencies.
*
* @see \Drupal\views\Plugin\Derivative\ViewsBlock::getDerivativeDefinitions()
*/