Skip to content

Commit

Permalink
[#1] Updated automated tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Decipher committed Sep 26, 2020
1 parent c831de4 commit 2621f65
Show file tree
Hide file tree
Showing 5 changed files with 292 additions and 112 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
langcode: en
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus:
- main
parent: 'main:'
dependencies: {}
third_party_settings: {}
name: Location
type: location
description: 'JSON:API Views test content type'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
langcode: en
status: true
dependencies:
module:
- menu_ui
third_party_settings:
menu_ui:
available_menus:
- main
parent: 'main:'
dependencies: {}
third_party_settings: {}
name: Room
type: room
description: 'JSON:API Views test content type'
Expand Down
6 changes: 3 additions & 3 deletions tests/modules/jsonapi_views_test/jsonapi_views_test.info.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: 'JSON:API Views Test'
type: module
core_version_requirement: '^8.8 || ^9'
dependencies:
- 'drupal:node'
- 'drupal:views'
- 'drupal:menu_ui'
- drupal:node
- drupal:views
- jsonapi_views:jsonapi_views
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- node.type.location
- node.type.room
module:
- node
- user
Expand Down Expand Up @@ -247,6 +249,100 @@ display:
position: 4
display_options:
display_extenders: { }
filters:
type_1:
id: type_1
table: node_field_data
field: type
relationship: none
group_type: group
admin_label: ''
operator: in
value:
location: location
group: 1
exposed: false
expose:
operator_id: type_1_op
label: 'Content type'
description: ''
use_operator: false
operator: type_1_op
operator_limit_selection: false
operator_list: { }
identifier: content_type
required: false
remember: false
multiple: true
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
entity_type: node
entity_field: type
plugin_id: bundle
status:
id: status
table: node_field_data
field: status
relationship: none
group_type: group
admin_label: ''
operator: '='
value: All
group: 1
exposed: true
expose:
operator_id: ''
label: 'Published status'
description: ''
use_operator: false
operator: status_op
operator_limit_selection: false
operator_list: { }
identifier: status
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
entity_type: node
entity_field: status
plugin_id: boolean
defaults:
filters: false
filter_groups: false
filter_groups:
operator: AND
groups:
1: AND
cache_metadata:
max-age: -1
contexts:
Expand All @@ -270,6 +366,8 @@ display:
row: false
pager: false
fields: false
filters: false
filter_groups: false
row:
type: fields
pager:
Expand Down Expand Up @@ -341,6 +439,97 @@ display:
multi_type: separator
separator: ', '
field_api_classes: false
filters:
type_1:
id: type_1
table: node_field_data
field: type
relationship: none
group_type: group
admin_label: ''
operator: in
value:
room: room
group: 1
exposed: false
expose:
operator_id: type_1_op
label: 'Content type'
description: ''
use_operator: false
operator: type_1_op
operator_limit_selection: false
operator_list: { }
identifier: content_type
required: false
remember: false
multiple: true
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
entity_type: node
entity_field: type
plugin_id: bundle
status:
id: status
table: node_field_data
field: status
relationship: none
group_type: group
admin_label: ''
operator: '='
value: All
group: 1
exposed: true
expose:
operator_id: ''
label: 'Published status'
description: ''
use_operator: false
operator: status_op
operator_limit_selection: false
operator_list: { }
identifier: status
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
entity_type: node
entity_field: status
plugin_id: boolean
filter_groups:
operator: AND
groups:
1: AND
cache_metadata:
max-age: -1
contexts:
Expand Down
Loading

0 comments on commit 2621f65

Please sign in to comment.