Download the PHP package wp-graphql/wp-graphql-testcase without Composer

On this page you can find all versions of the php package wp-graphql/wp-graphql-testcase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wp-graphql-testcase

WPGraphQL TestCase

continuous_integration Coverage Status

Is a library of tools for testing WPGraphQL APIs, designed for both WPGraphQL and WPGraphQL extension development. Currently the library only consisted of a Codeception Testcase built on top wp-browser's WPTestCase class.

Installing

  1. Run composer require wp-graphql/wp-graphql-testcase from your project directory in the terminal.

Codeception Only

  1. If your didn't already have codeception installed in the project, run vendor/bin/codecept init wpbrowser.
  2. To make a test case generate a with vendor/bin/codecept generate:wpunit wpunit TestName. Then just change the extending class to \Tests\WPGraphQL\TestCase\WPGraphQLTestCase :man_shrugging:

Going Forward

There are plans to add more to this library, and contribution are greatly appreciated :pray:.

Contributing

To contribute, fork this repository and open a PR with your requested changes back into the main repository.

Local Development

To develop locally, you need to have Docker and Composer installed.

Composer Setup

To ensure you have the necessary local dependencies, first run composer install.

Docker Setup

This project currently uses a docker-compose.yml v2 file. To spin this up, run docker-compose up -d.

Local Tests

To run the local tests, use composer run-phpunit or composer run-codeception. You should see the tests pass with output generated in the terminal.

Test Coverage

The CI process uses coveralls.io to store coverage reports. This is available for free for open-source projects, and is required to run the CI process. Sign up for free and add your COVERALLS_REPO_TOKEN value to GitHub Actions secrets.

Contributors


All versions of wp-graphql-testcase with dependencies

PHP Build Version
Package Version
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wp-graphql/wp-graphql-testcase contains the following files

Loading the files please wait ....