Skip to content

Commit 11ad33c

Browse files
Merge pull request #10 from ManiruzzamanAkash/phpunit-test-integration
Phpunit test Integration and Test-cases for Job REST API's + Manager
2 parents 93de96f + be7cb80 commit 11ad33c

File tree

13 files changed

+1663
-464
lines changed

13 files changed

+1663
-464
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/node_modules
22
/vendor
3-
/build
3+
/build
4+
.phpunit.result.cache

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ npm run start:hot
2424
npm run build
2525
```
2626

27+
### Run PHP Unit Test
28+
29+
```sh
30+
./vendor/bin/phpunit
31+
```
32+
2733
After running `start`, or `build` command, there will be a folder called `/build` will be generated at the root directory.
2834

2935
### Browse Plugin
@@ -90,6 +96,11 @@ Or, it could be your custom processed URL.
9096
[View Detailed documentations with parameters and responses of the REST API](https://github.com/ManiruzzamanAkash/wp-react-kit/blob/main/Rest-API-Docs.MD)
9197

9298
### Version & Changelogs
99+
**v0.3.1 - 11/08/2022**
100+
101+
1. PHPUnit Test cases setup.
102+
1. PHPUnit Test cases added for Job Manager and Job REST API's.
103+
93104
**v0.3.0 - 02/08/2022**
94105

95106
1. Necessary traits to handle - sanitization, query.

composer.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,26 @@
1010
}
1111
],
1212
"config": {
13-
"platform": {
14-
"php": "^7.3||8.0"
15-
},
1613
"allow-plugins": {
1714
"dealerdirect/phpcodesniffer-composer-installer": true
1815
}
1916
},
17+
"require": {
18+
"php": ">=7.0.0|8.0"
19+
},
2020
"require-dev": {
2121
"wp-coding-standards/wpcs": "dev-master",
2222
"dealerdirect/phpcodesniffer-composer-installer": "dev-master",
2323
"tareq1988/wp-php-cs-fixer": "dev-master",
2424
"phpcompatibility/phpcompatibility-wp": "dev-master",
25-
"phpunit/phpunit": "^6.5"
25+
"wp-phpunit/wp-phpunit": "^6.0",
26+
"yoast/phpunit-polyfills": "^1.0",
27+
"phpunit/phpunit": "^9.5"
2628
},
2729
"autoload": {
2830
"psr-4": {
2931
"Akash\\JobPlace\\": "includes/",
30-
"Akash\\JobPlace\\Tests\\": "tests/"
32+
"Akash\\JobPlace\\Tests\\": "tests/phpunit/"
3133
}
3234
},
3335
"scripts": {

0 commit comments

Comments
 (0)