Skip to content

Commit

Permalink
Merge pull request #86 from pods-framework/feature/skc-fixes
Browse files Browse the repository at this point in the history
Pods Gravity Forms 1.4
  • Loading branch information
sc0ttkclark authored Oct 16, 2018
2 parents 992592c + 5232351 commit 39fb040
Show file tree
Hide file tree
Showing 30 changed files with 5,736 additions and 1,827 deletions.
8 changes: 8 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
WP_URL="http://test.pods.dev"
WP_ROOT_FOLDER="/tmp/wordpress"
DB_NAME=wordpress
DB_USER=wordpress
DB_HOST=localhost
DB_PASSWORD=password
DB_TABLE_PREFIX=wp_
WP_DOMAIN="test.pods.dev"
9 changes: 9 additions & 0 deletions .env.docker
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
WP_URL="http://test.dev"
WP_ROOT_FOLDER="/app/public"
DB_NAME=wordpress_test
DB_USER=root
DB_HOST=localhost
DB_PASSWORD=root
DB_TABLE_PREFIX=wptests_
WP_DOMAIN="test.dev"
TEST_REBUILD_DATA=true
13 changes: 10 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
# Auto detect text files and perform LF normalization
* text=auto

# Ignore other files
/.env.* export-ignore
/codeception.* export-ignore
/composer.* export-ignore
/docs export-ignore
/phpcs.xml export-ignore
/README.md export-ignore
/tests export-ignore
/sources export-ignore
kill-travis.php export-ignore
/assets export-ignore
/TESTS.md export-ignore
/vendor export-ignore

# Custom for Visual Studio
*.cs diff=csharp
Expand Down
12 changes: 12 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
vendor/
composer.lock

# Codeception stuff
codeception.yml
!tests/_data/dump.sql
!tests/_data/test-data.sql
tests/_output/*
tests/*.suite.yml
tests/*.pem
tests/*.cert
tests/*.key
19 changes: 19 additions & 0 deletions TESTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Testing

These tests utilize [Codeception](http://codeception.com/docs) and [WP Browser](https://github.com/lucatume/wp-browser).

## Installation

* `composer install`
* Create a new file `codeception.yml` with the env file you want to use:

```yaml
params:
- .env.docker
```

## Running tests

```shell
./bin/codecept run integration
```
16 changes: 16 additions & 0 deletions codeception.dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
support: tests/_support
envs: tests/_envs
settings:
bootstrap: _bootstrap.php
colors: true
memory_limit: 2048M
extensions:
enabled:
- Codeception\Extension\RunFailed
params:
- .env.dist
2 changes: 2 additions & 0 deletions codeception.example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
params:
- .env.docker
80 changes: 48 additions & 32 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,34 +1,50 @@
{
"name" : "pods-framework/pods-gravity-forms",
"description" : "Pods Gravity Forms Add-On",
"type" : "wordpress-plugin",
"keywords" : [ "pods", "wordpress", "gravityforms", "gravity-forms" ],
"homepage" : "https://github.com/pods-framework/pods-gravity-forms",
"license" : "GPL-2.0+",
"authors" : [
{
"name" : "Pods Framework Team",
"email" : "[email protected]",
"homepage" : "http://pods.io/"
},
{
"name" : "Scott Kingsley Clark",
"email" : "[email protected]",
"homepage" : "http://scottkclark.com/",
"role" : "Lead Developer"
},
{
"name" : "Naomi C. Bush | gravity+",
"email" : "[email protected]",
"homepage" : "https://gravityplus.pro"
}
],
"support" : {
"issues" : "https://github.com/pods-framework/pods-gravity-forms/issues",
"source" : "https://github.com/pods-framework/pods-gravity-forms"
},
"require" : {
"composer/installers" : "~1.0",
"php" : ">=5.3"
}
"name": "pods-framework/pods-gravity-forms",
"description": "Pods Gravity Forms Add-On",
"type": "wordpress-plugin",
"keywords": [
"pods",
"wordpress",
"gravityforms",
"gravity-forms"
],
"homepage": "https://github.com/pods-framework/pods-gravity-forms",
"license": "GPL-2.0+",
"authors": [
{
"name": "Pods Framework Team",
"email": "[email protected]",
"homepage": "https://pods.io/"
},
{
"name": "Scott Kingsley Clark",
"email": "[email protected]",
"homepage": "https://www.scottkclark.com/",
"role": "Lead Developer"
},
{
"name": "Naomi C. Bush | gravity+",
"email": "[email protected]",
"homepage": "https://gravityplus.pro",
"role": "Contributing Developer"
}
],
"support": {
"issues": "https://github.com/pods-framework/pods-gravity-forms/issues",
"source": "https://github.com/pods-framework/pods-gravity-forms"
},
"autoload": {
"psr-4": {
"Pods\\GF\\": "tests/integration/Pods/GF/",
"Pods\\GF\\Tests\\": "tests/_support/"
}
},
"require": {
"composer/installers": "~1.0",
"php": ">=5.3"
},
"require-dev": {
"lucatume/wp-browser": "^2.0",
"vlucas/phpdotenv": "^2.4"
}
}
Loading

0 comments on commit 39fb040

Please sign in to comment.