forked from wp-graphql/wp-graphql-jwt-authentication
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wp-graphql#49 - Login mutation needs to be registered using `register…
…_graphql_mutation` - also fixes some test issues
- Loading branch information
Showing
15 changed files
with
1,845 additions
and
1,663 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Shared | ||
TEST_DB_NAME="wptests" | ||
TEST_DB_HOST="127.0.0.1" | ||
TEST_DB_USER="root" | ||
TEST_DB_PASSWORD="" | ||
|
||
# Install script | ||
WP_VERSION=latest | ||
SKIP_DB_CREATE=false | ||
|
||
# Codeception | ||
WP_ROOT_FOLDER="/tmp/wp-graphql-jwt-authentication/wordpress" | ||
WP_ADMIN_PATH="/wp-admin" | ||
DB_NAME="wptests" | ||
DB_HOST="127.0.0.1" | ||
DB_USER="root" | ||
DB_PASSWORD="" | ||
WP_TABLE_PREFIX="wp_" | ||
WP_URL="http://wp.test" | ||
WP_DOMAIN="wp.test" | ||
ADMIN_EMAIL="admin@wp.test" | ||
ADMIN_USERNAME="admin" | ||
ADMIN_PASSWORD="password" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,6 @@ vendor/* | |
!vendor/autoload.php | ||
c3.php | ||
!/tests | ||
/tests/*.suite.yml | ||
/tests/*.suite.yml | ||
.env | ||
.codeception.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
paths: | ||
tests: tests | ||
output: tests/_output | ||
data: tests/_data | ||
support: tests/_support | ||
envs: tests/_envs | ||
actor_suffix: Tester | ||
settings: | ||
colors: true | ||
memory_limit: 1024M | ||
coverage: | ||
enabled: true | ||
whitelist: | ||
include: | ||
- wp-graphql-acf.php | ||
- access-functions.php | ||
- src/*.php | ||
extensions: | ||
enabled: | ||
- Codeception\Extension\RunFailed | ||
commands: | ||
- Codeception\Command\GenerateWPUnit | ||
- Codeception\Command\GenerateWPRestApi | ||
- Codeception\Command\GenerateWPRestController | ||
- Codeception\Command\GenerateWPRestPostTypeController | ||
- Codeception\Command\GenerateWPAjax | ||
- Codeception\Command\GenerateWPCanonical | ||
- Codeception\Command\GenerateWPXMLRPC | ||
params: | ||
- .env.dist | ||
modules: | ||
config: | ||
WPDb: | ||
dsn: 'mysql:host=%DB_HOST%;dbname=%DB_NAME%' | ||
user: '%DB_USER%' | ||
password: '%DB_PASSWORD%' | ||
populator: 'mysql -u $user -p$password -h $host $dbname < $dump' | ||
dump: 'tests/_data/dump.sql' | ||
populate: true | ||
cleanup: true | ||
waitlock: 0 | ||
url: '%WP_URL%' | ||
urlReplacement: true | ||
tablePrefix: '%WP_TABLE_PREFIX%' | ||
WPBrowser: | ||
url: '%WP_URL%' | ||
wpRootFolder: '%WP_ROOT_FOLDER%' | ||
adminUsername: '%ADMIN_USERNAME%' | ||
adminPassword: '%ADMIN_PASSWORD%' | ||
adminPath: '/wp-admin' | ||
REST: | ||
depends: WPBrowser | ||
url: '%WP_URL%' | ||
WPFilesystem: | ||
wpRootFolder: '%WP_ROOT_FOLDER%' | ||
plugins: '/wp-content/plugins' | ||
mu-plugins: '/wp-content/mu-plugins' | ||
themes: '/wp-content/themes' | ||
uploads: '/wp-content/uploads' | ||
WPLoader: | ||
wpRootFolder: '%WP_ROOT_FOLDER%' | ||
dbName: '%DB_NAME%' | ||
dbHost: '%DB_HOST%' | ||
dbUser: '%DB_USER%' | ||
dbPassword: '%DB_PASSWORD%' | ||
tablePrefix: '%WP_TABLE_PREFIX%' | ||
domain: '%WP_DOMAIN%' | ||
adminEmail: '%ADMIN_EMAIL%' | ||
title: 'Test' | ||
plugins: ['wp-graphql/wp-graphql.php', 'wp-graphql/wp-graphql-jwt-authentication.php'] | ||
activatePlugins: ['wp-graphql/wp-graphql.php', 'wp-graphql/wp-graphql-jwt-authentication.php', ] | ||
configFile: 'tests/_data/config.php' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.