public function UserPermissionsContextTest::testUserPermissionsContext in GraphQL 8.4
Same name and namespace in other branches
- 8.3 tests/src/Kernel/Framework/UserPermissionsContextTest.php \Drupal\Tests\graphql\Kernel\Framework\UserPermissionsContextTest::testUserPermissionsContext()
Assert user.permissions tag on results.
File
- tests/
src/ Kernel/ Framework/ UserPermissionsContextTest.php, line 39
Class
- UserPermissionsContextTest
- Verify that all queries declare the user.permissions cache context.
Namespace
Drupal\Tests\graphql\Kernel\FrameworkCode
public function testUserPermissionsContext() : void {
$this
->mockResolver('Query', 'root', 'test');
$this
->assertResults('{ root }', [], [
'root' => 'test',
]);
}