New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guiding comments please .....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skshetry Please have a look at the comments.
2c9315d
to
3604510
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
馃憤
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.php
default values.Related Issue
#31347
Motivation and Context
How Has This Been Tested?
馃
Screenshots (if appropriate):
Types of changes
Checklist: