Skip to content

Commit f015c7e

Browse files
Released v0.3.1
1 parent 5b2242b commit f015c7e

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

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.

includes/Jobs/Manager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct() {
2222
* Get all jobs by criteria.
2323
*
2424
* @since 0.3.0
25-
* @since JOB_PLACE_SINCE Fixed counting return type as integer.
25+
* @since 0.3.1 Fixed counting return type as integer.
2626
*
2727
* @param array $args
2828
* @return array|object|string|int

includes/REST/JobsController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ public function generate_unique_slug( WP_REST_Request $request ) {
565565
/**
566566
* Generate beautiful slug.
567567
*
568-
* @since JOB_PLACE_SINCE
568+
* @since 0.3.1
569569
*
570570
* @param string $slug
571571
* @param integer $i

includes/Traits/Queryable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function delete( array $where, array $where_format = [] ): ?int {
155155
/**
156156
* Truncate table.
157157
*
158-
* @since JOB_PLACE_SINCE
158+
* @since 0.3.1
159159
*
160160
* @return void
161161
*/

tests/phpunit/bootstrap.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
/**
2828
* Manually load the plugin being tested.
2929
*
30-
* @since JOB_PLACE_SINCE
30+
* @since 0.3.1
3131
*
3232
* @return void
3333
*/
@@ -39,7 +39,7 @@ function _manually_load_plugin(): void {
3939
/**
4040
* Load any external plugin if needs.
4141
*
42-
* @since JOB_PLACE_SINCE
42+
* @since 0.3.1
4343
*
4444
* @example for Woocommerce Installation
4545
*
@@ -63,7 +63,7 @@ function _manually_load_required_plugins(): void {
6363
/**
6464
* Install database tables for this plugin.
6565
*
66-
* @since JOB_PLACE_SINCE
66+
* @since 0.3.1
6767
*
6868
* @return void
6969
*/
@@ -77,7 +77,7 @@ function install_plugin_databases(): void {
7777
/**
7878
* After setup theme install any needed plugins.
7979
*
80-
* @since JOB_PLACE_SINCE
80+
* @since 0.3.1
8181
*
8282
* @example for Woocommerce Installation
8383
*

0 commit comments

Comments
 (0)