Skip to content

Commit

Permalink
Merge 8e6686e into dbfa819
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbahl committed Mar 7, 2017
2 parents dbfa819 + 8e6686e commit aef7f94
Show file tree
Hide file tree
Showing 2,043 changed files with 677 additions and 240,952 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.idea
!vendor/
vendor/
!vendor/autoload.php
!vendor/composer/

!/tests
build/
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,11 @@ of GraphQL queries using WPGraphQL here:
To run unit tests during development, you'll first need a testing database that you'd like to use.

Open the command line and navigate to the plugin's directory. From within the plugin directory, run the following
command to install the test suite, filling in the parameters appropriately to link to an existing test database or to
commands to install the test suite, filling in the parameters appropriately to link to an existing test database or to
create a new test database:

`composer install`

`bin/install-wp-tests.sh <db-name> <db-user> <db-pass> [db-host] [wp-version] [skip-database-creation]`

NOTE: You'll want the test database to be a true test database, not a database with valuable, existing information, as
Expand Down
14 changes: 4 additions & 10 deletions tests/test-plugin-queries.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function testPluginsQuery() {

$query = '
{
plugins{
plugins(last: 1){
edges{
node{
id
Expand All @@ -60,12 +60,6 @@ public function testPluginsQuery() {
'data' => [
'plugins' => [
'edges' => [
[
'node' => [
'id' => 'cGx1Z2luOkFraXNtZXQ=',
'name' => 'Akismet',
],
],
[
'node' => [
'id' => 'cGx1Z2luOkhlbGxvIERvbGx5',
Expand All @@ -89,7 +83,7 @@ public function testPluginQuery() {

$query = '
{
plugin(id: "cGx1Z2luOkFraXNtZXQ="){
plugin(id: "cGx1Z2luOkhlbGxvIERvbGx5"){
id
name
}
Expand All @@ -101,8 +95,8 @@ public function testPluginQuery() {
$expected = [
'data' => [
'plugin' => [
'id' => 'cGx1Z2luOkFraXNtZXQ=',
'name' => 'Akismet',
'id' => 'cGx1Z2luOkhlbGxvIERvbGx5',
'name' => 'Hello Dolly',
],
],
];
Expand Down
1 change: 0 additions & 1 deletion vendor/bin/coveralls

This file was deleted.

1 change: 0 additions & 1 deletion vendor/bin/phpunit

This file was deleted.

Loading

0 comments on commit aef7f94

Please sign in to comment.