You are here

public function ResolverBuilderTest::testFromValue in GraphQL 8.4

@covers ::fromValue

File

tests/src/Kernel/ResolverBuilderTest.php, line 76

Class

ResolverBuilderTest
Tests that the resolver builder behaves correctly.

Namespace

Drupal\Tests\graphql\Kernel

Code

public function testFromValue() : void {
  $this
    ->mockResolver('Query', 'me', $this->builder
    ->fromValue('some me'));
  $query = <<<GQL
      query {
        me
      }
GQL;
  $this
    ->assertResults($query, [], [
    'me' => 'some me',
  ]);
}