xaddax/codeception-graphql
最新稳定版本:0.3.0
Composer 安装命令:
composer require xaddax/codeception-graphql
包简介
GraphQL extension for Codeception
关键字:
README 文档
README
#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.
Installation
composer require xaddax/codeception-graphql --dev
To configure
In your acceptance.suite.yml file
modules: enabled: - GraphQL: url: 'http://localhost:8080/'
Testing
To use it in a test
class PingCest { public function testPing(AcceptanceTester $I) { $query = 'query{ping {response}}'; $I->sendGraphQL($query); $expected = [ 'ping' => [ 'response' => 'pong', ], ]; $I->assertEquals($expected, $I->grabResponseData()); } }
统计信息
- 总下载量: 15.69k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-01