Commit 8786f9b7 authored by git's avatar git Committed by jrockowitz

Issue #2847262 by Denchev: Missing schema

parent 43049015
......@@ -29,6 +29,8 @@ field.field_settings.block_field:
plugin_ids:
type: sequence
label: 'Plugin ids'
sequence:
type: string
field.value.block_field:
type: mapping
......
......@@ -21,7 +21,14 @@ class BlockFieldTest extends WebTestBase {
*
* @var array
*/
public static $modules = ['node', 'user', 'block', 'block_field', 'block_field_test'];
public static $modules = [
'node',
'user',
'block',
'block_field',
'block_field_test',
'field_ui',
];
/**
* Tests block field.
......@@ -32,6 +39,7 @@ class BlockFieldTest extends WebTestBase {
'administer nodes',
'administer content types',
'bypass node access',
'administer node fields',
]);
$this->drupalLogin($admin_user);
......@@ -135,6 +143,12 @@ class BlockFieldTest extends WebTestBase {
$this->drupalGet('node/' . $block_node->id());
$this->assertPattern('/\d\d:\d\d:\d\d \(\d+\)/');
$this->assertNoRaw($time);
$this->drupalGet('admin/structure/types/manage/block_field_test/fields/node.block_field_test.field_block_field_test');
$this->drupalPostForm(NULL, ['settings[plugin_ids][page_title_block]' => FALSE], t('Save settings'));
$this->drupalGet('admin/structure/types/manage/block_field_test/fields/node.block_field_test.field_block_field_test');
$this->assertResponse(200);
}
}
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