-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix treating any post types coverage as
ALL
when it's not SUB
@…
… `isRequiredPostTypes()` * move variable `$paramsRequiredPostTypes` out of `validate40003()` as public const `REQUIRED_POST_TYPES_KEY_BY_PARAM_NAME` * move variable `$orderByRequiredPostTypes` out of `validate40004()` as public const `REQUIRED_POST_TYPES_KEY_BY_ORDER_BY_VALUE` @ ParamsValidator * move variable `$paramDefaultValueByType` & `$paramsNameByType` out of `addDefaultValueOnParams()` as public const `PARAM_DEFAULT_VALUE_KEY_BY_TYPE` & `PARAM_NAME_KEY_BY_TYPE` @ QueryParams @ `App\Http\PostsQuery` * providing all predefined params and their expected output as test data @ `provideValidate4000{3,4}()` * add provided data name by using string keys in the returned array @ `provideValidate4000{1,5}()` @ `Tests\Feature\App\Http\PostsQuery\ParamsValidatorTest` * providing all predefined params and their expected output as test data @ `provideAddDefaultValueOnParams()` * now providing empty input and expecting all filled default params @ `provideAddDefaultValueOnUniqueParams()` @ `Tests\Unit\App\Http\PostsQuery\QueryParamsTest` @ be
- Loading branch information
Showing
4 changed files
with
120 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters