Skip to content

Commit b08ea7d

Browse files
committed
Moving module changes into eventSubscriber.
1 parent 27327f6 commit b08ea7d

File tree

3 files changed

+4
-19
lines changed

3 files changed

+4
-19
lines changed

.github/workflows/testing.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
jobs:
88
drupal:
99
name: Drupal ${{ matrix.drupal-core }} (PHP ${{ matrix.php-versions }})
10-
# We cannot use ubuntu-latest right now as it still points to 22.04 and we need a newer database driver."
10+
# We cannot use ubuntu-latest right now as it still points to 22.04 and we need a newer database driver.
1111
runs-on: ubuntu-24.04
1212
env:
1313
extensions: mbstring, xml, pdo_sqlite, gd, opcache

tests/modules/graphql_file_validate/graphql_file_validate.module

-17
This file was deleted.

tests/modules/graphql_file_validate/src/EventSubscriber/GraphqlFileValidationTestSubscriber.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ class GraphqlFileValidationTestSubscriber implements EventSubscriberInterface {
1919
* The event.
2020
*/
2121
public function onFileValidation(FileValidationEvent $event): void {
22-
graphql_file_validate_test_file($event->file);
22+
if (!file_exists($event->file->getFileUri())) {
23+
throw new \Exception('File does not exist during validation: ' . $event->file->getFileUri());
24+
}
2325
}
2426

2527
/**

0 commit comments

Comments
 (0)