Add cli tests for config file values#35269
Conversation
9201414 to
2c144f6
Compare
Codecov Report
@@ Coverage Diff @@
## master #35269 +/- ##
============================================
- Coverage 65.54% 65.53% -0.01%
Complexity 18647 18647
============================================
Files 1218 1218
Lines 70546 70545 -1
Branches 1288 1288
============================================
- Hits 46236 46234 -2
- Misses 23933 23934 +1
Partials 377 377
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #35269 +/- ##
=========================================
Coverage 65.54% 65.54%
Complexity 18647 18647
=========================================
Files 1218 1218
Lines 70546 70546
Branches 1288 1288
=========================================
Hits 46236 46236
Misses 23933 23933
Partials 377 377
Continue to review full report at Codecov.
|
6e9e1cc to
42a42d7
Compare
| $system_config = $config_list['system']; | ||
| $configArray = $system_config[$key]; | ||
|
|
||
| foreach ($configArray as $innerConfigArray) { |
There was a problem hiding this comment.
Guiding comments please .....
There was a problem hiding this comment.
@skshetry Please have a look at the comments.
2c9315d to
3604510
Compare
3604510 to
e712d32
Compare
| increment the foundCount value | ||
| Note: all the values from the tableNode should be present inside the same | ||
| config array that's why foundCount is used */ | ||
| if ($innerConfigArray[$value['key']] === $value['value']) { |
There was a problem hiding this comment.
we could delete from the table the found keys and then the ones that are not found will be left over, so the error can show which one were not found
There was a problem hiding this comment.
Yeah, that seems to be the better way.
e712d32 to
14067f0
Compare
14067f0 to
314609a
Compare
314609a to
20149a7
Compare
|
@paurakhsharma please backport and mark in #35207 |
|
Backport on: #35320 |
Description
Add cli tests for checking
config.phpdefault values.Related Issue
#31347
Motivation and Context
How Has This Been Tested?
🤖
Screenshots (if appropriate):
Types of changes
Checklist: