Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UHF-9367: tests #477

Merged
merged 17 commits into from
Oct 8, 2024
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ jobs:

- name: Run PHPCS
run: |
vendor/bin/phpcs public/modules/custom/ --ignore="*.js,*.css" --extensions=php,module,install --standard=Drupal,DrupalPractice
vendor/bin/phpcs public/themes/custom/ --ignore="*.js,*.css" --extensions=php,theme --standard=Drupal,DrupalPractice
vendor/bin/phpcs public/modules/custom/
vendor/bin/phpcs public/themes/custom/

- name: Run phpstan
run: vendor/bin/phpstan analyze

- name: Download latest dump
env:
Expand Down
4 changes: 2 additions & 2 deletions conf/cmi/field.field.node.decision.field_minutes_checked.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ translatable: false
default_value: { }
default_value_callback: ''
settings:
on_label: Kyllä
off_label: Ei
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ default_value:
value: 0
default_value_callback: ''
settings:
on_label: Käytössä
off_label: 'Pois päältä'
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ default_value:
value: 0
default_value_callback: ''
settings:
on_label: Käytössä
off_label: 'Pois päältä'
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ default_value:
value: 0
default_value_callback: ''
settings:
on_label: Käytössä
off_label: 'Pois päältä'
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ default_value:
value: 0
default_value_callback: ''
settings:
on_label: Käytössä
off_label: 'Pois päältä'
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ default_value:
value: 0
default_value_callback: ''
settings:
on_label: Käytössä
off_label: 'Pois päältä'
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ default_value:
value: 0
default_value_callback: ''
settings:
on_label: Käytössä
off_label: 'Pois päältä'
on_label: 'On'
off_label: 'Off'
field_type: boolean
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ default_value:
value: 1
default_value_callback: ''
settings:
on_label: Käytössä
off_label: 'Pois päältä'
on_label: 'On'
off_label: 'Off'
field_type: boolean
11 changes: 11 additions & 0 deletions phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<ruleset name="Drupal">
<arg name="extensions" value="php,module,install,theme,inc"/>
<exclude-pattern>*.css</exclude-pattern>
<exclude-pattern>*.js</exclude-pattern>
<rule ref="Drupal" />
<rule ref="DrupalPractice">
<exclude name="DrupalPractice.General.OptionsT.TforValue" />
<exclude name="DrupalPractice.Objects.UnusedPrivateMethod.UnusedMethod" />
</rule>
</ruleset>
10 changes: 8 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@ parameters:
- install
- theme
paths:
- ./public/modules/custom
- ./public/themes/custom
- ./public/modules/custom/paatokset_ahjo_openid
- ./public/modules/custom/paatokset_ahjo_api/src/Plugin/QueueWorker
- ./public/modules/custom/paatokset_ahjo_api/src/Plugin/Deriver
- ./public/modules/custom/paatokset_ahjo_api/src/AhjoQueueWorkerBase.php
- ./public/modules/custom/paatokset_datapumppu
# TODO: Enable for all files.
#- ./public/modules/custom
#- ./public/themes/custom
excludePaths:
- vendor
level: 3
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 307a017f-d076-4871-9804-a8d640a3d2df
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_classification_code
- node.type.case
id: node.case.field_classification_code
field_name: field_classification_code
entity_type: node
bundle: case
label: 'Classification code'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 79514bdd-7c78-44ec-b0c3-4ad80e05dc52
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_diary_number
- node.type.case
id: node.case.field_diary_number
field_name: field_diary_number
entity_type: node
bundle: case
label: 'Diary number'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 41fc625f-166a-4df7-9fdd-c73d8b21f52d
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_full_title
- node.type.case
id: node.case.field_full_title
field_name: field_full_title
entity_type: node
bundle: case
label: 'Full title'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: fc3fcc85-dd27-4160-a2c5-46f5ec9cdeb4
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_top_category_name
- node.type.case
id: node.case.field_top_category_name
field_name: field_top_category_name
entity_type: node
bundle: case
label: 'Top category name'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 328e54c5-d060-4856-a499-9bdb2cc8d276
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_classification_code
- node.type.decision
id: node.decision.field_classification_code
field_name: field_classification_code
entity_type: node
bundle: decision
label: 'Classification code'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: f71e7334-b215-455c-96d2-aa17a254bc68
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_decision_attachments
- node.type.decision
module:
- json_field
id: node.decision.field_decision_attachments
field_name: field_decision_attachments
entity_type: node
bundle: decision
label: Attachments
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: json_native
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 01cd94eb-b26b-4465-bbbe-84ea7400ab95
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_decision_date
- node.type.decision
module:
- datetime
id: node.decision.field_decision_date
field_name: field_decision_date
entity_type: node
bundle: decision
label: 'Decision issued date'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: datetime
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
uuid: ecd2f77e-4a86-4400-920c-263f2e261e87
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_decision_motion
- node.type.decision
module:
- text
id: node.decision.field_decision_motion
field_name: field_decision_motion
entity_type: node
bundle: decision
label: Motion
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats: { }
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 1c9dc50d-edb2-4d74-a459-1937087db0b2
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_decision_native_id
- node.type.decision
id: node.decision.field_decision_native_id
field_name: field_decision_native_id
entity_type: node
bundle: decision
label: 'Native ID'
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 5262cd0e-ad7f-4b54-b2f4-eb18d96c2ee7
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_decision_record
- node.type.decision
module:
- json_field
id: node.decision.field_decision_record
field_name: field_decision_record
entity_type: node
bundle: decision
label: 'Decision record'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: json_native
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 222604ee-fe75-4317-ae4a-6cfd1730efa6
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_decision_section
- node.type.decision
id: node.decision.field_decision_section
field_name: field_decision_section
entity_type: node
bundle: decision
label: Section
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: a29bbbea-124a-42fb-a0f5-e10afeba4576
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_decision_series_id
- node.type.decision
id: node.decision.field_decision_series_id
field_name: field_decision_series_id
entity_type: node
bundle: decision
label: 'Series ID'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 5ac13c43-3d07-4256-beff-29425093ecc5
langcode: en
status: true
dependencies:
config:
- field.storage.node.field_diary_number
- node.type.decision
id: node.decision.field_diary_number
field_name: field_diary_number
entity_type: node
bundle: decision
label: 'Diary number'
description: ''
required: false
translatable: true
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
Loading