Open carolyncaron opened 2 weeks ago
g5.120-addColumnCountAsserts
Group 5 | Automated Testing | Performance
In PR #119, I was notified by PHP Sniffer that ValidatorTraitColumnCountTest.php has unused variable $exception_caught on lines 151, 158, 169, and 177. See code block below: https://github.com/TripalCultivate/TripalCultivate-Phenotypes/blob/17ba2dea7b554b588a556c09756a83ecdc2f439c/trpcultivate_phenotypes/tests/src/Kernel/Validators/Traits/ValidatorTraitColumnCountTest.php#L151-L177
ValidatorTraitColumnCountTest.php
$exception_caught
Instead of removing the variables, there should be asserts added to check for it. This involves adding expected outcomes to the data provider provideExpectedColumnsForSetter().
provideExpectedColumnsForSetter()
Branch
g5.120-addColumnCountAsserts
Groups
Group 5 | Automated Testing | Performance
Describe
In PR #119, I was notified by PHP Sniffer that
ValidatorTraitColumnCountTest.php
has unused variable$exception_caught
on lines 151, 158, 169, and 177. See code block below: https://github.com/TripalCultivate/TripalCultivate-Phenotypes/blob/17ba2dea7b554b588a556c09756a83ecdc2f439c/trpcultivate_phenotypes/tests/src/Kernel/Validators/Traits/ValidatorTraitColumnCountTest.php#L151-L177Design
Instead of removing the variables, there should be asserts added to check for it. This involves adding expected outcomes to the data provider
provideExpectedColumnsForSetter()
.