File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414 - SIMPLETEST_DB=mysql://root:@127.0.0.1/graphql
1515 - TRAVIS=true
1616 matrix :
17- - DRUPAL_CORE=8.3.x
1817 - DRUPAL_CORE=8.4.x
1918 - DRUPAL_CORE=8.5.x
19+ - DRUPAL_CORE=8.6.x
2020
2121matrix :
2222 # Don't wait for the allowed failures to build.
2323 fast_finish : true
2424 include :
2525 - php : 7.1
2626 env :
27- - DRUPAL_CORE=8.5 .x
27+ - DRUPAL_CORE=8.6 .x
2828 # Only run code coverage on the latest php and drupal versions.
2929 - WITH_PHPDBG_COVERAGE=true
3030 allow_failures :
3131 # Allow the code coverage report to fail.
3232 - php : 7.1
3333 env :
34- - DRUPAL_CORE=8.5 .x
34+ - DRUPAL_CORE=8.6 .x
3535 # Only run code coverage on the latest php and drupal versions.
3636 - WITH_PHPDBG_COVERAGE=true
3737
@@ -93,7 +93,12 @@ install:
9393
9494 # Bring in the module dependencies without requiring a merge plugin. The
9595 # require also triggers a full 'composer install'.
96- - composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.11.5
96+ - composer --working-dir=$DRUPAL_BUILD_DIR require webonyx/graphql-php:^0.12.6
97+
98+ # Update PHPUnit for Drupal version >= 8.5.0
99+ - if [[ "$DRUPAL_CORE" != "8.4.x" ]];
100+ then composer --working-dir=$DRUPAL_BUILD_DIR run-script drupal-phpunit-upgrade;
101+ fi
97102
98103script :
99104 # Run the unit tests using phpdbg if the environment variable is 'true'.
Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ description: 'Adds support for views.'
44package : GraphQL
55core : 8.x
66dependencies :
7- - graphql_core
8- - views
7+ - graphql:graphql_core
8+ - drupal:views
9+ - drupal:system (>=8.4)
Original file line number Diff line number Diff line change 88use Drupal \taxonomy \Entity \Term ;
99use Drupal \taxonomy \Entity \Vocabulary ;
1010use Drupal \user \Entity \Role ;
11+ use Drupal \Tests \graphql_core \Kernel \GraphQLContentTestBase ;
12+ use Drupal \Tests \taxonomy \Functional \TaxonomyTestTrait ;
1113
1214/**
1315 * Base class for test views support in GraphQL.
1416 *
1517 * @group graphql_views
1618 */
17- abstract class ViewsTestBase extends ViewsTestBaseDeprecationFix {
19+ abstract class ViewsTestBase extends GraphQLContentTestBase {
1820 use NodeCreationTrait;
1921 use ContentTypeCreationTrait;
2022 use EntityReferenceTestTrait;
23+ use TaxonomyTestTrait;
2124
2225 /**
2326 * {@inheritdoc}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments