-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch '7.3.x' into d11-compatibility
* 7.3.x: Disable redis extension Release Thunder 7.3.7 Re-add list tags to graphql queries Issue #3478701: Release Thunder 7.3.6 Update diff module (#846) Fix notices in graphql requests Issue #3476367: Release Thunder 7.3.5 Issue #3474835 by anacolautti: Scheduling a published content with content moderation unexpectedly unpublishes the content Bump actions/download-artifact from 1 to 4.1.7 in /.github/workflows (#841) Bump vite and vuepress (#842) Upload test output Issue #3469715 by volkerk: Release Thunder 7.3.3 GraphQL query for Search API Issue #3468098 by daniel.bosen, volkerk: Release Thunder 7.3.2 Add focal_point patch from #3462165 Fix Testing Issue #3466311: Release Thunder 7.3.1 Fix checkbox problem in firefox (#824) Add password policy patch to fix password reset (#825)
- Loading branch information
Showing
29 changed files
with
4,220 additions
and
4,121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
modules/thunder_gqls/tests/src/Kernel/DataProducer/ThunderEntityListTest.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
<?php | ||
|
||
namespace Drupal\Tests\thunder_gqls\Kernel\DataProducer; | ||
|
||
use Drupal\Tests\graphql\Kernel\GraphQLTestBase; | ||
|
||
/** | ||
* Test entities_with_term data producer. | ||
* | ||
* @group Thunder | ||
*/ | ||
class ThunderEntityListTest extends GraphQLTestBase { | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected static $modules = [ | ||
'text', | ||
'thunder_gqls', | ||
]; | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function setUp(): void { | ||
parent::setUp(); | ||
|
||
$schema = <<<GQL | ||
type Query { | ||
articles: EntityList | ||
} | ||
type EntityList { | ||
total: Int! | ||
} | ||
GQL; | ||
|
||
$this->setUpSchema($schema); | ||
} | ||
|
||
/** | ||
* Test cache metadata for the query. | ||
*/ | ||
public function testQueryCacheMetadata(): void { | ||
$query = <<<GQL | ||
query { | ||
articles { | ||
total | ||
} | ||
} | ||
GQL; | ||
|
||
$this->mockResolver('Query', 'articles', | ||
$this->builder->produce('thunder_entity_list') | ||
->map('type', $this->builder->fromValue('node')) | ||
); | ||
$this->mockResolver('EntityList', 'total', $this->builder->fromValue(1)); | ||
|
||
$metadata = $this->defaultCacheMetaData(); | ||
$metadata->setCacheContexts(['user.permissions', 'user.node_grants:view']); | ||
$metadata->addCacheTags(['node_list']); | ||
|
||
$this->assertResults($query, [], [ | ||
'articles' => ['total' => '1'], | ||
], $metadata); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.