2017 © Pedro Peláez
 

library codeception-graphql

GraphQL extension for Codeception

image

xaddax/codeception-graphql

GraphQL extension for Codeception

  • Friday, June 1, 2018
  • by iampersistent
  • Repository
  • 1 Watchers
  • 2 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

No longer supported, use zestic/codeception-graphql instead

Codeception GraphQL

A codeception extension for calling GraphQL endpoints

This requires a running server, you can use Codeception PhpBuiltInServer if needed., (*1)

Installation

composer require xaddax/codeception-graphql --dev

To configure

In your acceptance.suite.yml file, (*2)

modules:
    enabled:
        - GraphQL:
            url: 'http://localhost:8080/'

Testing

To use it in a test, (*3)


class PingCest { public function testPing(AcceptanceTester $I) { $query = 'query{ping {response}}'; $I->sendGraphQL($query); $expected = [ 'ping' => [ 'response' => 'pong', ], ]; $I->assertEquals($expected, $I->grabResponseData()); } }

The Versions

01/06 2018

dev-master

9999999-dev

GraphQL extension for Codeception

  Sources   Download

MIT

The Requires

 

codeception graphql

01/06 2018

0.1.0

0.1.0.0

GraphQL extension for Codeception

  Sources   Download

MIT

The Requires

 

codeception graphql