Skip to content

Commit 39fb040

Browse files
authored
Merge pull request #86 from pods-framework/feature/skc-fixes
Pods Gravity Forms 1.4
2 parents 992592c + 5232351 commit 39fb040

30 files changed

+5736
-1827
lines changed

.env.dist

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
WP_URL="http://test.pods.dev"
2+
WP_ROOT_FOLDER="/tmp/wordpress"
3+
DB_NAME=wordpress
4+
DB_USER=wordpress
5+
DB_HOST=localhost
6+
DB_PASSWORD=password
7+
DB_TABLE_PREFIX=wp_
8+
WP_DOMAIN="test.pods.dev"

.env.docker

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
WP_URL="http://test.dev"
2+
WP_ROOT_FOLDER="/app/public"
3+
DB_NAME=wordpress_test
4+
DB_USER=root
5+
DB_HOST=localhost
6+
DB_PASSWORD=root
7+
DB_TABLE_PREFIX=wptests_
8+
WP_DOMAIN="test.dev"
9+
TEST_REBUILD_DATA=true

.gitattributes

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
# Auto detect text files and perform LF normalization
22
* text=auto
3+
4+
# Ignore other files
5+
/.env.* export-ignore
6+
/codeception.* export-ignore
7+
/composer.* export-ignore
8+
/docs export-ignore
9+
/phpcs.xml export-ignore
10+
/README.md export-ignore
311
/tests export-ignore
4-
/sources export-ignore
5-
kill-travis.php export-ignore
6-
/assets export-ignore
12+
/TESTS.md export-ignore
13+
/vendor export-ignore
714

815
# Custom for Visual Studio
916
*.cs diff=csharp

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
vendor/
2+
composer.lock
3+
4+
# Codeception stuff
5+
codeception.yml
6+
!tests/_data/dump.sql
7+
!tests/_data/test-data.sql
8+
tests/_output/*
9+
tests/*.suite.yml
10+
tests/*.pem
11+
tests/*.cert
12+
tests/*.key

TESTS.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Testing
2+
3+
These tests utilize [Codeception](http://codeception.com/docs) and [WP Browser](https://github.com/lucatume/wp-browser).
4+
5+
## Installation
6+
7+
* `composer install`
8+
* Create a new file `codeception.yml` with the env file you want to use:
9+
10+
```yaml
11+
params:
12+
- .env.docker
13+
```
14+
15+
## Running tests
16+
17+
```shell
18+
./bin/codecept run integration
19+
```

codeception.dist.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
actor: Tester
2+
paths:
3+
tests: tests
4+
log: tests/_output
5+
data: tests/_data
6+
support: tests/_support
7+
envs: tests/_envs
8+
settings:
9+
bootstrap: _bootstrap.php
10+
colors: true
11+
memory_limit: 2048M
12+
extensions:
13+
enabled:
14+
- Codeception\Extension\RunFailed
15+
params:
16+
- .env.dist

codeception.example.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
params:
2+
- .env.docker

composer.json

Lines changed: 48 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,50 @@
11
{
2-
"name" : "pods-framework/pods-gravity-forms",
3-
"description" : "Pods Gravity Forms Add-On",
4-
"type" : "wordpress-plugin",
5-
"keywords" : [ "pods", "wordpress", "gravityforms", "gravity-forms" ],
6-
"homepage" : "https://github.com/pods-framework/pods-gravity-forms",
7-
"license" : "GPL-2.0+",
8-
"authors" : [
9-
{
10-
"name" : "Pods Framework Team",
11-
"email" : "contact@pods.io",
12-
"homepage" : "http://pods.io/"
13-
},
14-
{
15-
"name" : "Scott Kingsley Clark",
16-
"email" : "scott@pods.io",
17-
"homepage" : "http://scottkclark.com/",
18-
"role" : "Lead Developer"
19-
},
20-
{
21-
"name" : "Naomi C. Bush | gravity+",
22-
"email" : "naomi@gravityplus.pro",
23-
"homepage" : "https://gravityplus.pro"
24-
}
25-
],
26-
"support" : {
27-
"issues" : "https://github.com/pods-framework/pods-gravity-forms/issues",
28-
"source" : "https://github.com/pods-framework/pods-gravity-forms"
29-
},
30-
"require" : {
31-
"composer/installers" : "~1.0",
32-
"php" : ">=5.3"
33-
}
2+
"name": "pods-framework/pods-gravity-forms",
3+
"description": "Pods Gravity Forms Add-On",
4+
"type": "wordpress-plugin",
5+
"keywords": [
6+
"pods",
7+
"wordpress",
8+
"gravityforms",
9+
"gravity-forms"
10+
],
11+
"homepage": "https://github.com/pods-framework/pods-gravity-forms",
12+
"license": "GPL-2.0+",
13+
"authors": [
14+
{
15+
"name": "Pods Framework Team",
16+
"email": "contact@pods.io",
17+
"homepage": "https://pods.io/"
18+
},
19+
{
20+
"name": "Scott Kingsley Clark",
21+
"email": "scott@pods.io",
22+
"homepage": "https://www.scottkclark.com/",
23+
"role": "Lead Developer"
24+
},
25+
{
26+
"name": "Naomi C. Bush | gravity+",
27+
"email": "naomi@gravityplus.pro",
28+
"homepage": "https://gravityplus.pro",
29+
"role": "Contributing Developer"
30+
}
31+
],
32+
"support": {
33+
"issues": "https://github.com/pods-framework/pods-gravity-forms/issues",
34+
"source": "https://github.com/pods-framework/pods-gravity-forms"
35+
},
36+
"autoload": {
37+
"psr-4": {
38+
"Pods\\GF\\": "tests/integration/Pods/GF/",
39+
"Pods\\GF\\Tests\\": "tests/_support/"
40+
}
41+
},
42+
"require": {
43+
"composer/installers": "~1.0",
44+
"php": ">=5.3"
45+
},
46+
"require-dev": {
47+
"lucatume/wp-browser": "^2.0",
48+
"vlucas/phpdotenv": "^2.4"
49+
}
3450
}

0 commit comments

Comments
 (0)