Skip to content

Commit 29a971d

Browse files
committed
Added kernel tests.
1 parent 04e29c4 commit 29a971d

22 files changed

+104
-81
lines changed

.ahoy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,28 +61,28 @@ commands:
6161
usage: Run tests.
6262
cmd: |
6363
pushd "build" >/dev/null || exit 1
64-
php -d pcov.directory=.. vendor/bin/phpunit --coverage-text
64+
php -d pcov.directory="../.." vendor/bin/phpunit --coverage-text
6565
popd >/dev/null || exit 1
6666
6767
test-unit:
6868
usage: Run unit tests.
6969
cmd: |
7070
pushd "build" >/dev/null || exit 1
71-
php -d pcov.directory=.. vendor/bin/phpunit --testsuite unit "$@"
71+
php -d pcov.directory="../.." vendor/bin/phpunit --testsuite unit "$@"
7272
popd >/dev/null || exit 1
7373
7474
test-kernel:
7575
usage: Run kernel tests.
7676
cmd: |
7777
pushd "build" >/dev/null || exit 1
78-
php -d pcov.directory=.. vendor/bin/phpunit --testsuite kernel "$@"
78+
php -d pcov.directory="../.." vendor/bin/phpunit --testsuite kernel "$@"
7979
popd >/dev/null || exit 1
8080
8181
test-functional:
8282
usage: Run functional tests.
8383
cmd: |
8484
pushd "build" >/dev/null || exit 1
85-
php -d pcov.directory=.. vendor/bin/phpunit --testsuite functional "$@"
85+
php -d pcov.directory="../.." vendor/bin/phpunit --testsuite functional "$@"
8686
popd >/dev/null || exit 1
8787
8888
check-code-coverage:

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151

152152
- name: Run tests
153153
working-directory: build
154-
run: php -d pcov.directory=.. vendor/bin/phpunit --coverage-text --colors=never || [ "${CI_TEST_IGNORE_FAILURE:-0}" -eq 1 ] || [ "${CI_TEST_ACCEPT_CANARY_FAILURE:-0}" -eq 1 ]
154+
run: php -d pcov.directory="../.." vendor/bin/phpunit --coverage-text --colors=never || [ "${CI_TEST_IGNORE_FAILURE:-0}" -eq 1 ] || [ "${CI_TEST_ACCEPT_CANARY_FAILURE:-0}" -eq 1 ]
155155
env:
156156
BROWSERTEST_OUTPUT_DIRECTORY: /tmp
157157
CI_TEST_IGNORE_FAILURE: ${{ vars.CI_TEST_IGNORE_FAILURE }}

.gitlab-ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ variables:
6767
apt-get update && apt-get install -qy --no-install-recommends $PHPIZE_DEPS
6868
pecl install pcov
6969
fi
70-
- echo -e '[pcov]\npcov.directory=.' > /usr/local/etc/php/conf.d/pcov.ini
70+
- echo -e "[pcov]\npcov.directory=${CI_PROJECT_DIR}" > /usr/local/etc/php/conf.d/pcov.ini
71+
- |
72+
echo "Content of /usr/local/etc/php/conf.d/pcov.ini"
73+
cat cat /usr/local/etc/php/conf.d/pcov.ini
7174
- docker-php-ext-enable pcov
7275
- echo -e "\e[0Ksection_end:`date +%s`:php_ext_install\r\e[0K"
7376
after_script:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ You can run specific tests by passing a path to the test file or PHPUnit CLI
184184
option (`--filter`, `--group`, etc.) to the `ahoy test` command:
185185

186186
```bash
187-
ahoy test-unit tests/src/Unit/MyUnitTest.php
187+
ahoy test-unit ../tests/src/Unit/MyUnitTest.php
188188
ahoy test-unit -- --group=wip
189189
```
190190

config/install/core.entity_form_display.node.rac.default.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ langcode: en
22
status: true
33
dependencies:
44
config:
5-
- field.field.node.rac.body
65
- field.field.node.rac.field_rules
76
- field.field.node.rac.field_webform
87
- node.type.rac
@@ -16,16 +15,6 @@ targetEntityType: node
1615
bundle: rac
1716
mode: default
1817
content:
19-
body:
20-
type: text_textarea_with_summary
21-
weight: 121
22-
region: content
23-
settings:
24-
rows: 9
25-
summary_rows: 3
26-
placeholder: ''
27-
show_summary: false
28-
third_party_settings: { }
2918
created:
3019
type: datetime_timestamp
3120
weight: 10

config/install/core.entity_view_display.node.rac.default.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ langcode: en
22
status: true
33
dependencies:
44
config:
5-
- field.field.node.rac.body
65
- field.field.node.rac.field_rules
76
- field.field.node.rac.field_webform
87
- node.type.rac
@@ -16,13 +15,6 @@ targetEntityType: node
1615
bundle: rac
1716
mode: default
1817
content:
19-
body:
20-
type: text_default
21-
label: hidden
22-
settings: { }
23-
third_party_settings: { }
24-
weight: 2
25-
region: content
2618
field_rules:
2719
type: entity_reference_revisions_entity_view
2820
label: visually_hidden

config/install/field.field.node.rac.body.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

config/install/field.storage.node.field_rules.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
uuid: 00ad54a1-2ed3-4870-a278-b31cf1c07f8a
21
langcode: en
32
status: true
43
dependencies:

config/install/field.storage.node.field_webform.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
uuid: 69a3486a-67ec-4e21-9df9-9d6ccb7e3ba0
21
langcode: en
32
status: true
43
dependencies:

config/install/field.storage.paragraph.field_redirect_to.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
uuid: f26533ec-0af5-4c6d-8b7f-c0cbe6508cac
21
langcode: en
32
status: true
43
dependencies:

0 commit comments

Comments
 (0)