Issue #2325269 by Gábor Hojtsy, Arla: Test and fix views in test_views directories against their configuration schema

8.0.x
Alex Pott 2014-12-02 16:18:11 +00:00
parent 6eaa4d3908
commit 22d1816823
92 changed files with 287 additions and 227 deletions

View File

@ -84,18 +84,21 @@ class MenuParentFormSelector implements MenuParentFormSelectorInterface {
$options = $this->getParentSelectOptions($id, $menus);
// If no options were found, there is nothing to select.
if ($options) {
$element = array(
'#type' => 'select',
'#options' => $options,
);
if (!isset($options[$menu_parent])) {
// Try putting it at the top level in the current menu.
// The requested menu parent cannot be found in the menu anymore. Try
// setting it to the top level in the current menu.
list($menu_name, $parent) = explode(':', $menu_parent, 2);
$menu_parent = $menu_name . ':';
}
if (isset($options[$menu_parent])) {
return array(
'#type' => 'select',
'#options' => $options,
'#default_value' => $menu_parent,
);
// Only provide the default value if it is valid among the options.
$element += array('#default_value' => $menu_parent);
}
return $element;
}
return array();
}

View File

@ -113,18 +113,20 @@ display:
element_default_classes: true
empty: ''
hide_alter_empty: true
link_to_node: false
link_to_entity: false
plugin_id: comment
filters:
status:
value: '1'
value: true
table: comment_field_data
field: status
id: status
expose:
operator: ''
group: 1
plugin_id: boolean
status_node:
value: '1'
value: true
table: node_field_data
field: status
relationship: node
@ -132,6 +134,7 @@ display:
expose:
operator: ''
group: 1
plugin_id: boolean
sorts: { }
title: test_comment_row
header: { }

View File

@ -84,7 +84,7 @@ display:
html: false
hide_empty: false
empty_zero: false
link_to_comment: 1
link_to_comment: true
relationship: none
group_type: group
admin_label: ''

View File

@ -94,8 +94,9 @@ display:
table: views
field: area
empty: true
content: 'No people available.'
format: plain_text
content:
value: 'No people available.'
format: plain_text
plugin_id: text
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null

View File

@ -16,7 +16,6 @@ display:
fields: false
relationships: false
pager: false
pager_options: false
sorts: false
fields:
id:
@ -28,7 +27,6 @@ display:
id_1:
field: id
id: id_1
order: ASC
relationship: test_relationship
table: entity_test
plugin_id: numeric
@ -36,7 +34,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id

View File

@ -26,18 +26,24 @@ views.field.field:
type:
type: string
label: 'Formatter'
field_api_classes:
type: boolean
label: 'Use field template'
settings:
type: sequence
label: 'Settings'
sequence:
- type: string
label: 'Setting'
group_column:
type: string
label: 'Group by column'
group_columns:
type: sequence
label: 'Group by columns'
sequence:
- type: string
label: 'Column'
group_rows:
type: boolean
label: 'Display all values in the same row'
multi_type:
type: string
label: 'Display type'
separator:
type: label
label: 'Separator'
delta_limit:
type: string
label: 'Field'
@ -50,6 +56,15 @@ views.field.field:
delta_first_last:
type: boolean
label: 'First and last only'
multi_type:
type: string
label: 'Display type'
separator:
type: label
label: 'Separator'
field_api_classes:
type: boolean
label: 'Use field template'
views.filter.field_list:
type: views.filter.many_to_one

View File

@ -679,7 +679,6 @@ display:
display_description: ''
defaults:
pager: true
pager_options: true
relationships: false
relationships:
fid:
@ -704,7 +703,6 @@ display:
defaults:
empty: false
pager: false
pager_options: false
filters: false
filter_groups: false
fields: false
@ -732,7 +730,6 @@ display:
items_per_page_options_all_label: '- All -'
offset: false
offset_label: Offset
pager_options: false
filters: { }
filter_groups:
operator: AND

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
age:
@ -40,7 +39,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id

View File

@ -94,12 +94,12 @@ views.argument_validator.node:
label: 'Filter value format'
views.field.node_language:
type: views_field
type: views.field.node
label: 'Node language'
mapping:
link_to_node:
native_language:
type: boolean
label: 'Link this field to the original piece of content'
label: 'Native language'
views.field.node:
type: views_field

View File

@ -90,7 +90,7 @@ display:
type: tab
title: 'Test contextual link'
description: ''
name: tools
menu_name: tools
weight: 0
context: '1'
field_langcode: '***LANGUAGE_language_content***'

View File

@ -107,7 +107,8 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: true
link_to_node: 0
link_to_node: false
plugin_id: node
langcode:
id: langcode
table: node_field_data
@ -157,7 +158,7 @@ display:
empty_zero: false
hide_alter_empty: true
link_to_node: false
native_language: 0
native_language: false
plugin_id: node_language
filters:
status:
@ -168,12 +169,14 @@ display:
expose:
operator: ''
group: 1
plugin_id: boolean
type:
id: type
table: node_field_data
field: type
value:
page: page
plugin_id: bundle
langcode:
id: langcode
table: node_field_data

View File

@ -23,6 +23,10 @@ views.filter.search:
type: string
label: 'On empty input'
views.filter_value.search_keywords:
type: string
label: 'Search keywords'
views.row.search_view:
type: views_row
label: 'Source link'

View File

@ -53,6 +53,7 @@ display:
hide_empty: false
empty_zero: false
link_to_node: true
plugin_id: node
timestamp:
id: timestamp
table: node_counter
@ -104,6 +105,7 @@ display:
date_format: html_year
custom_date_format: ''
timezone: ''
plugin_id: date
totalcount:
id: totalcount
table: node_counter
@ -153,7 +155,7 @@ display:
empty_zero: false
hide_alter_empty: true
set_precision: false
precision: false
precision: 0
decimal: .
separator: ''
format_plural: false
@ -161,6 +163,7 @@ display:
format_plural_plural: '@count'
prefix: ''
suffix: ''
plugin_id: numeric
daycount:
id: daycount
table: node_counter
@ -210,7 +213,7 @@ display:
empty_zero: false
hide_alter_empty: true
set_precision: false
precision: false
precision: 0
decimal: .
separator: ''
format_plural: false
@ -218,6 +221,7 @@ display:
format_plural_plural: '@count'
prefix: ''
suffix: ''
plugin_id: numeric
filters:
status:
value: true
@ -227,6 +231,7 @@ display:
expose:
operator: ''
group: 1
plugin_id: boolean
sorts:
created:
id: created

View File

@ -79,17 +79,13 @@ views.argument_default.taxonomy_tid:
sequence:
- type: string
label: 'Vocabulary'
anyall:
type: string
label: 'Multiple-value handling'
views.field.taxonomy_term_language:
type: views_field
type: views.field.taxonomy
label: 'Taxonomy language'
mapping:
link_to_taxonomy:
type: boolean
label: 'Link this field to its taxonomy term page'
convert_spaces:
type: boolean
label: 'Convert spaces in term names to hyphens'
views.field.term_link_edit:
type: views_field
@ -110,7 +106,6 @@ views.field.taxonomy:
type: boolean
label: 'Convert spaces in term names to hyphens'
views.field.taxonomy_index_tid:
type: views_field
label: 'Taxonomy language'
@ -135,18 +130,9 @@ views.field.taxonomy_index_tid:
label: 'Vocabulary'
views.filter.taxonomy_index_tid:
type: views.filter.in_operator
type: views.filter.many_to_one
label: 'Taxonomy term ID'
mapping:
operator:
type: string
label: 'Operator'
value:
type: sequence
label: 'Values'
sequence:
- type: string
label: 'Value'
vid:
type: string
label: 'Vocabulary'
@ -156,6 +142,12 @@ views.filter.taxonomy_index_tid:
hierarchy:
type: boolean
label: 'Show hierarchy in dropdown'
limit:
type: boolean
label: 'Limit to vocabulary'
error_message:
type: boolean
label: 'Display error message'
views.filter.taxonomy_index_tid_depth:
type: views.filter.in_operator

View File

@ -48,7 +48,7 @@ class TaxonomyIndexTid extends ManyToOne {
$options['type'] = array('default' => 'textfield');
$options['limit'] = array('default' => TRUE);
$options['vid'] = array('default' => '');
$options['hierarchy'] = array('default' => 0);
$options['hierarchy'] = array('default' => FALSE);
$options['error_message'] = array('default' => TRUE);
return $options;

View File

@ -95,7 +95,7 @@ display:
html: false
hide_empty: false
empty_zero: false
link_to_taxonomy: 1
link_to_taxonomy: true
relationship: none
group_type: group
admin_label: ''
@ -111,6 +111,7 @@ display:
empty: ''
hide_alter_empty: true
convert_spaces: false
plugin_id: taxonomy
filters: { }
sorts: { }
header: { }

View File

@ -70,7 +70,7 @@ display:
html: false
hide_empty: false
empty_zero: false
link_to_taxonomy: 1
link_to_taxonomy: true
relationship: none
group_type: group
admin_label: ''
@ -86,6 +86,7 @@ display:
empty: ''
hide_alter_empty: true
convert_spaces: false
plugin_id: taxonomy
filters:
name:
id: name

View File

@ -112,6 +112,7 @@ display:
element_default_classes: true
empty: ''
hide_alter_empty: true
plugin_id: node
filters:
status:
value: true
@ -121,6 +122,7 @@ display:
expose:
operator: '0'
group: 1
plugin_id: boolean
tid:
id: tid
table: taxonomy_index

View File

@ -42,11 +42,10 @@ display:
type: views_query
relationships:
tid_representative:
admin_label: ''
admin_label: 'Representative node'
field: tid_representative
group_type: group
id: tid_representative
label: 'Representative node'
relationship: none
required: false
subquery_namespace: ''

View File

@ -55,7 +55,7 @@ display:
term_node_tid:
field: term_node_tid
id: term_node_tid
label: 'Term #1'
admin_label: 'Term #1'
table: node
vids:
tags: ''
@ -63,7 +63,7 @@ display:
term_node_tid_1:
field: term_node_tid
id: term_node_tid_1
label: 'Term #2'
admin_label: 'Term #2'
table: node
vids:
tags: ''

View File

@ -96,7 +96,7 @@ display:
html: false
hide_empty: false
empty_zero: false
link_to_taxonomy: 1
link_to_taxonomy: true
relationship: none
group_type: group
admin_label: ''
@ -112,6 +112,7 @@ display:
empty: ''
hide_alter_empty: true
convert_spaces: false
plugin_id: taxonomy
filters: { }
sorts: { }
header: { }

View File

@ -103,6 +103,7 @@ display:
empty_zero: false
hide_alter_empty: true
link_to_node: true
plugin_id: node
filters:
uid_touch_tracker:
id: uid_touch_tracker

View File

@ -129,6 +129,17 @@ views.field.user_bulk_form:
type: views_field_bulk_form
label: 'User operations bulk form'
views.field.user_data:
type: views_field
label: 'User data field'
mapping:
data_module:
type: string
label: 'Module name'
data_name:
type: string
label: 'Name'
views.filter.user_current:
type: views.filter.boolean
label: 'Current user'

View File

@ -16,7 +16,8 @@ display:
default:
display_options:
access:
perm: 'access user profiles'
options:
perm: 'access user profiles'
type: perm
cache:
type: none
@ -52,11 +53,10 @@ display:
type: views_query
relationships:
uid_representative:
admin_label: ''
admin_label: 'Representative node'
field: uid_representative
group_type: group
id: uid_representative
label: 'Representative node'
relationship: none
required: false
subquery_namespace: ''

View File

@ -22,9 +22,9 @@ display:
default_argument_type: current_user
field: 'null'
id: 'null'
must_not_be: '0'
style_plugin: default_summary
must_not_be: false
table: views
plugin_id: 'null'
cache:
type: none
exposed_form:
@ -43,8 +43,9 @@ display:
field: title
hide_empty: false
id: title
link_to_node: '0'
link_to_node: false
table: node_field_data
plugin_id: node
pager:
options:
id: 0

View File

@ -37,6 +37,7 @@ display:
field: changed
label: 'Updated date'
date_format: html_date
plugin_id: date
filters: { }
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null

View File

@ -20,7 +20,8 @@ display:
display_options:
access:
type: perm
perm: 'access user profiles'
options:
perm: 'access user profiles'
cache:
type: none
query:
@ -50,9 +51,9 @@ display:
html: false
hide_empty: false
empty_zero: false
link_to_user: '1'
overwrite_anonymous: '0'
plugin_id: string
link_to_user: true
overwrite_anonymous: false
plugin_id: user_name
data:
id: data
table: users
@ -107,7 +108,7 @@ display:
filters:
uid:
value:
- '2'
value: '2'
table: users
field: uid
id: uid

View File

@ -20,7 +20,6 @@ display:
field: 'null'
id: 'null'
must_not_be: false
style_plugin: default_summary
table: views
validate:
type: 'entity:user'

View File

@ -20,7 +20,6 @@ display:
field: 'null'
id: 'null'
must_not_be: false
style_plugin: default_summary
table: views
validate:
type: user_name

View File

@ -20,7 +20,8 @@ display:
display_options:
access:
type: perm
perm: 'access user profiles'
options:
perm: 'access user profiles'
cache:
type: none
query:

View File

@ -51,7 +51,6 @@ views.area.result:
type: text
label: 'The shown text of the result summary area'
views.area.title:
type: views_area
label: 'Title'
@ -67,6 +66,15 @@ views.area.view:
view_to_insert:
type: string
label: 'View to insert'
inherit_to_arguments:
inherit_arguments:
type: boolean
label: 'Inherit contextual filters'
views.area.http_status_code:
type: views_area
label: 'HTTP status code'
mapping:
status_code:
type: integer
label: 'HTTP status code'

View File

@ -154,6 +154,9 @@ views_display:
exposed_form:
type: boolean
label: 'Exposed form style'
exposed_form_options:
type: boolean
label: 'Exposed form options'
link_display:
type: boolean
label: 'Link display'
@ -190,6 +193,12 @@ views_display:
pager_options:
type: boolean
label: 'Pager options'
header:
type: boolean
label: 'Header'
footer:
type: boolean
label: 'Footer'
relationships:
type: sequence
label: 'Relationships'
@ -260,6 +269,9 @@ views_display:
contexts:
type: sequence
label: 'Cache contexts'
exposed_block:
type: boolean
label: 'Put the exposed form in a block'
views_sort:
type: views_handler

View File

@ -99,10 +99,10 @@ class ViewEntityDependenciesTest extends ViewUnitTestBase {
// The argument handler has an explicit dependency on views_test_data.
'views_test_data',
],
'test_dependency' => [
'access',
'row',
'style',
'content' => [
'RowTest',
'StaticTest',
'StyleTest',
]
];
foreach ($this::$testViews as $view_id) {

View File

@ -0,0 +1,61 @@
<?php
/**
* @file
* Contains Drupal\views\Tests\TestViewsTest.
*/
namespace Drupal\views\Tests;
use Drupal\config\Tests\SchemaCheckTestTrait;
use Drupal\config_test\TestInstallStorage;
use Drupal\Core\Config\InstallStorage;
use Drupal\Core\Config\TypedConfigManager;
use Drupal\simpletest\KernelTestBase;
/**
* Tests that test views provided by all modules match schema.
*
* @group config
*/
class TestViewsTest extends KernelTestBase {
use SchemaCheckTestTrait;
/**
* Modules to enable.
*
* @var array
*/
public static $modules = array('views_test_data');
/**
* Tests default configuration data type.
*/
public function testDefaultConfig() {
// Create a typed config manager with access to configuration schema in
// every module, profile and theme.
$typed_config = new TypedConfigManager(
\Drupal::service('config.storage'),
new TestInstallStorage(InstallStorage::CONFIG_SCHEMA_DIRECTORY),
\Drupal::service('cache.discovery'),
\Drupal::service('module_handler')
);
// Create a configuration storage with access to default configuration in
// every module, profile and theme.
$default_config_storage = new TestInstallStorage('test_views');
foreach ($default_config_storage->listAll() as $config_name) {
// Skip files provided by the config_schema_test module since that module
// is explicitly for testing schema.
if (strpos($config_name, 'config_schema_test') === 0) {
continue;
}
$data = $default_config_storage->read($config_name);
$this->assertConfigSchema($typed_config, $config_name, $data);
}
}
}

View File

@ -83,13 +83,8 @@ class ViewElementTest extends ViewTestBase {
$view->displayHandlers->get('default')->overrideOption('arguments', array(
'age' => array(
'default_action' => 'ignore',
'style_plugin' => 'default_summary',
'style_options' => array(),
'wildcard' => 'all',
'wildcard_substitution' => 'All',
'title' => '',
'default_argument_type' => 'fixed',
'default_argument' => '',
'validate' => array(
'type' => 'none',
'fail' => 'not found',
@ -99,7 +94,6 @@ class ViewElementTest extends ViewTestBase {
'id' => 'age',
'table' => 'views_test_data',
'field' => 'age',
'validate_user_argument_type' => 'uid',
)
));
$view->save();

View File

@ -42,7 +42,6 @@ display:
field: id
hide_empty: false
id: id
link_to_node: '0'
table: entity_test
plugin_id: numeric
group_by: true

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
age:
@ -41,7 +40,6 @@ display:
offset: 0
items_per_page: 2
type: mini
pager_options: { }
sorts:
id:
field: id

View File

@ -15,7 +15,8 @@ display:
default:
display_options:
access:
perm: 'access user profiles'
options:
perm: 'access user profiles'
type: perm
cache:
type: none
@ -87,7 +88,6 @@ display:
type: views_query
row:
type: fields
style_plugin: default
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
display_plugin: default

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:
@ -28,7 +27,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id
@ -54,7 +52,7 @@ display:
display_options:
path: test-area-title
defaults:
header: '0'
header: false
header:
title:
field: title

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:
@ -28,7 +27,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id
@ -43,7 +41,7 @@ display:
id: view
table: views
view_to_insert: 'test_simple_argument:default'
inherit_arguments: 1
inherit_arguments: true
plugin_id: view
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
arguments:
date_fulldate:
@ -34,7 +33,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id

View File

@ -23,7 +23,6 @@ display:
field: 'null'
id: 'null'
must_not_be: false
style_plugin: default_summary
table: views
plugin_id: 'null'
cache:

View File

@ -2,7 +2,6 @@ langcode: und
status: true
dependencies: { }
id: test_click_sort
label: { }
module: views
description: ''
tag: ''
@ -31,11 +30,10 @@ display:
field: created
label: created
plugin_id: date
display_options:
access:
type: none
cache:
type: none
access:
type: none
cache:
type: none
style:
type: table
options:

View File

@ -23,21 +23,18 @@ display:
default_argument_type: fixed
field: created_day
id: created_day
style_plugin: default_summary
table: node_field_data
plugin_id: date_day
created_fulldate:
default_argument_type: fixed
field: created_fulldate
id: created_fulldate
style_plugin: default_summary
table: node_field_data
plugin_id: date_fulldate
created_month:
default_argument_type: fixed
field: created_month
id: created_month
style_plugin: default_summary
table: node_field_data
plugin_id: date_month
cache:

View File

@ -52,7 +52,6 @@ display:
order: DESC
table: node_field_data
plugin_id: date
style_plugin: default
title: 'Test Display'
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
@ -64,22 +63,16 @@ display:
display_options:
defaults:
pager: false
pager_options: false
style_options: '0'
style_plugin: '0'
fields:
title:
link_to_node: '1'
link_to_node: true
plugin_id: node
pager:
options:
items_per_page: 5
type: some
pager_options: { }
row:
type: fields
style_options: { }
style_plugin: default
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
display_plugin: block

View File

@ -49,7 +49,6 @@ display:
html: false
hide_empty: false
empty_zero: false
link_to_node: '1'
title: test_display_attachment
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:
@ -28,7 +27,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
header:
area:
field: area

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:
@ -28,7 +27,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id

View File

@ -234,8 +234,5 @@ display:
position: null
display_options:
path: test-dropbutton
field:
title:
link_to_node: '0'
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
header:
entity_entity_test:
@ -50,7 +49,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
display_plugin: default

View File

@ -15,13 +15,11 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
pager:
options:
offset: 0
type: none
pager_options: { }
row:
type: 'entity:taxonomy_term'
options:

View File

@ -21,13 +21,11 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
pager:
options:
offset: 0
type: none
pager_options: { }
row:
type: 'entity:node'
options:

View File

@ -72,6 +72,7 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: true
plugin_id: node_type
defaults:
fields: false
filters: false
@ -85,5 +86,6 @@ display:
all: all
test_bundle: test_bundle
test_bundle_2: test_bundle_2
plugin_id: bundle
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null

View File

@ -2,7 +2,6 @@ langcode: und
status: true
dependencies: { }
id: test_example_area
label: { }
module: views
description: ''
tag: ''

View File

@ -28,12 +28,12 @@ display:
identifier: type
label: 'Content: Type'
operator_id: type_op
reduce: '0'
reduce: false
exposed: true
field: type
id: type
table: node_field_data
plugin_id: node_type
plugin_id: in_operator
pager:
type: full
query:
@ -53,7 +53,7 @@ display:
page_1:
display_options:
path: test_exposed_block
exposed_block: '1'
exposed_block: true
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
display_plugin: page

View File

@ -28,12 +28,12 @@ display:
identifier: type
label: 'Content: Type'
operator_id: type_op
reduce: '0'
reduce: false
exposed: true
field: type
id: type
table: node_field_data
plugin_id: node_type
plugin_id: in_operator
pager:
type: full
query:

View File

@ -2,7 +2,6 @@ langcode: und
status: true
dependencies: { }
id: test_field_classes
label: { }
module: views
description: ''
tag: ''

View File

@ -56,11 +56,10 @@ display:
table: comment_field_data
plugin_id: standard
uid:
admin_label: ''
admin_label: 'Author'
field: uid
group_type: group
id: uid
label: author
relationship: node
required: false
table: node_field_data

View File

@ -24,13 +24,13 @@ display:
identifier: type
label: 'Content: Type'
operator_id: type_op
reduce: '0'
reduce: false
use_operator: false
exposed: true
field: type
id: type
table: node_field_data
plugin_id: string
plugin_id: in_operator
pager:
type: full
style:

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
age:
@ -40,7 +39,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id

View File

@ -30,7 +30,7 @@ display:
word_boundary: true
empty_zero: false
field: id
group_type: { }
group_type: group
hide_empty: false
id: id
table: entity_test

View File

@ -42,11 +42,10 @@ display:
type: views_query
relationships:
tid_representative:
admin_label: ''
admin_label: 'Representative node'
field: tid_representative
group_type: group
id: tid_representative
label: 'Representative node'
relationship: none
required: false
subquery_namespace: ''

View File

@ -186,7 +186,8 @@ display:
group_type: group
admin_label: ''
operator: '='
value: ''
value:
value: ''
group: 1
exposed: false
expose:
@ -213,6 +214,7 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
plugin_id: date
defaults:
filters: false
filter_groups: false

View File

@ -49,16 +49,18 @@ display:
html: false
hide_empty: false
empty_zero: false
link_to_node: '1'
link_to_node: true
plugin_id: node
filters:
status:
value: '1'
value: true
table: node
field: status
id: status
expose:
operator: '0'
group: 1
plugin_id: boolean
sorts:
created:
id: created
@ -75,7 +77,8 @@ display:
admin_label: ''
label: ''
empty: true
status_code: '200'
status_code: 200
plugin_id: http_status_code
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
page_1:

View File

@ -16,7 +16,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
age:

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:
@ -101,7 +100,7 @@ display:
title: 'Test child'
parent: system.admin
description: ''
name: tools
menu_name: tools
weight: 0
context: '0'
defaults:
@ -121,7 +120,7 @@ display:
title: 'Test child'
parent: system.admin
description: ''
name: not-existing-menu-name
menu_name: not-existing-menu-name
weight: 0
context: '0'
defaults:

View File

@ -3,8 +3,8 @@ status: true
dependencies:
module:
- views_test_data
test_dependency:
- access
content:
- StaticTest
id: test_page_display_route
label: ''
module: views
@ -19,7 +19,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
age:

View File

@ -4,10 +4,10 @@ dependencies:
module:
- comment
- views_test_data
test_dependency:
- access
- row
- style
content:
- StaticTest
- RowTest
- StyleTest
id: test_plugin_dependencies
label: test_plugin_dependencies
module: views
@ -27,7 +27,6 @@ display:
default_argument_type: fixed
id: 'null'
must_not_be: false
style_plugin: default_summary
table: views
field: null
plugin_id: 'null'
@ -49,7 +48,7 @@ display:
type: full
query:
type: views_query
relationships: null
relationships: { }
sorts: { }
style:
type: test_style

View File

@ -73,7 +73,7 @@ display:
html: false
hide_empty: false
empty_zero: false
link_to_node: 1
link_to_node: true
relationship: none
group_type: group
admin_label: ''
@ -89,6 +89,7 @@ display:
element_default_classes: true
empty: ''
hide_alter_empty: true
plugin_id: node
filters:
status:
value: true
@ -130,13 +131,14 @@ display:
display_description: ''
filters:
status:
value: '1'
value: true
table: node_field_data
field: status
id: status
expose:
operator: ''
group: 1
plugin_id: boolean
keys:
id: keys
table: node_search_index
@ -194,13 +196,14 @@ display:
display_description: ''
filters:
status:
value: '1'
value: true
table: node_field_data
field: status
id: status
expose:
operator: ''
group: 1
plugin_id: boolean
defaults:
filters: false
filter_groups: false

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
arguments: false
fields:
@ -38,7 +37,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id
@ -49,39 +47,18 @@ display:
arguments:
age:
default_action: ignore
style_plugin: default_summary
style_options: { }
wildcard: all
wildcard_substitution: All
title: ''
default_argument_type: fixed
default_argument: ''
validate:
type: none
fail: 'not found'
break_phrase: false
not: '0'
not: false
id: age
table: views_test_data
field: age
validate_user_argument_type: uid
validate_user_roles:
2: '0'
relationship: none
default_options_div_prefix: ''
default_argument_user: '0'
default_argument_fixed: ''
default_argument_php: ''
validate_argument_node_type:
page: '0'
story: '0'
validate_argument_node_access: '0'
validate_argument_nid_type: nid
validate_argument_vocabulary: { }
validate_argument_type: tid
validate_argument_transform: '0'
validate_user_restrict_roles: '0'
validate_argument_php: ''
plugin_id: numeric
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
display_plugin: default

View File

@ -17,7 +17,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
age:
@ -42,7 +41,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id
@ -59,8 +57,8 @@ display:
numeric_field:
age: age
title_field: name
toggle_numeric_field: '1'
toggle_title_field: '1'
toggle_numeric_field: true
toggle_title_field: true
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
display_plugin: default

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
age:
@ -40,7 +39,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id

View File

@ -32,7 +32,7 @@ display:
word_boundary: true
empty_zero: false
field: nid
group_type: { }
group_type: group
hide_empty: false
id: nid
table: node

View File

@ -16,7 +16,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
age:
@ -41,7 +40,6 @@ display:
type: full
options:
items_per_page: 10
pager_options: { }
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
display_plugin: default

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
row:
type: fields

View File

@ -20,7 +20,6 @@ display:
field: 'null'
id: 'null'
must_not_be: false
style_plugin: default_summary
table: views
validate:
type: numeric

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id_broken:
@ -78,7 +77,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
display_plugin: default

View File

@ -19,7 +19,6 @@ display:
position: 1
display_options:
access: { }
cache: { }
query: { }
pager: { }
style:

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:
@ -28,7 +27,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
field_langcode: '***LANGUAGE_language_content***'
field_langcode_add_to_query: null
display_plugin: default

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:
@ -40,7 +39,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
age:
@ -40,7 +39,6 @@ display:
options:
offset: 0
type: none
pager_options: { }
sorts:
id:
field: id

View File

@ -15,7 +15,6 @@ display:
defaults:
fields: false
pager: false
pager_options: false
sorts: false
fields:
id:

View File

@ -0,0 +1,28 @@
# Schema for the views plugins of the Views test data module.
views.style.mapping_test:
type: views_style
label: 'Mapping test style'
mapping:
mapping:
type: mapping
label: 'Mapping'
mapping:
name_field:
type: string
label: 'Name field'
title_field:
type: string
label: 'Title field'
numeric_field:
type: sequence
label: 'Numeric fields'
sequence:
- type: string
label: 'Numeric field'
toggle_numeric_field:
type: boolean
label: 'Toggle numeric field'
toggle_title_field:
type: boolean
label: 'Toggle title field'

View File

@ -47,7 +47,7 @@ class StaticTest extends AccessPluginBase {
*/
public function calculateDependencies() {
return [
'test_dependency' => ['access'],
'content' => ['StaticTest'],
];
}

View File

@ -41,7 +41,7 @@ class ArgumentDefaultTest extends ArgumentDefaultPluginBase {
*/
public function calculateDependencies() {
return [
'test_dependency' => ['argument_default'],
'content' => ['ArgumentDefaultTest'],
];
}

View File

@ -145,7 +145,7 @@ class DisplayTest extends DisplayPluginBase {
*/
public function calculateDependencies() {
return parent::calculateDependencies() + [
'test_dependency' => ['display'],
'content' => ['DisplayTest'],
];
}

View File

@ -151,7 +151,7 @@ class QueryTest extends QueryPluginBase {
*/
public function calculateDependencies() {
return parent::calculateDependencies() + [
'test_dependency' => ['query'],
'content' => ['QueryTest'],
];
}

View File

@ -87,7 +87,7 @@ class RowTest extends RowPluginBase {
*/
public function calculateDependencies() {
return [
'test_dependency' => ['row'],
'content' => ['RowTest'],
];
}

View File

@ -116,7 +116,7 @@ class StyleTest extends StylePluginBase {
*/
public function calculateDependencies() {
return [
'test_dependency' => ['style'],
'content' => ['StyleTest'],
];
}

View File

@ -3,8 +3,8 @@ status: true
dependencies:
module:
- views_test_data
test_dependency:
- access
content:
- StaticTest
id: test_access_static
label: ''
module: views