Commit ad22ba70 authored by webchick's avatar webchick

Issue #2547581 by Xano, dawehner, Berdir, alexpott: Missing configuration...

Issue #2547581 by Xano, dawehner, Berdir, alexpott: Missing configuration schemas for condition plugins
parent c8b9ed6f
......@@ -96,7 +96,7 @@ public function testUpdateHookN() {
$disabled_block = Block::load('thirdtestfor2354889');
$this->assertFalse($disabled_block->status(), 'Block with invalid context is disabled');
$this->assertEqual(['thirdtestfor2354889' => ['missing_context_ids' => ['baloney.spam' => ['node_type']], 'status' => TRUE]], \Drupal::keyValue('update_backup')->get('block_update_8001'));
$this->assertEqual(['thirdtestfor2354889' => ['missing_context_ids' => ['baloney_spam' => ['node_type']], 'status' => TRUE]], \Drupal::keyValue('update_backup')->get('block_update_8001'));
$disabled_block_visibility = $disabled_block->get('visibility');
$this->assertTrue(!isset($disabled_block_visibility['node_type']), 'The problematic visibility condition has been removed.');
......
......@@ -5,3 +5,6 @@ block.settings.test_block_instantiation:
display_message:
type: string
label: 'Message text'
condition.plugin.baloney_spam:
type: condition.plugin
......@@ -10,10 +10,10 @@
use Drupal\Core\Condition\ConditionPluginBase;
/**
* Provides a 'baloney.spam' condition.
* Provides a 'baloney_spam' condition.
*
* @Condition(
* id = "baloney.spam",
* id = "baloney_spam",
* label = @Translation("Baloney spam"),
* )
*
......
......@@ -27,4 +27,4 @@ visibility:
page: page
negate: false
context_mapping:
baloney: baloney.spam
baloney: baloney_spam
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment