Commit 7141e6d
committed
Fix generator name used in testDeprecatedSniffsListDoesNotShowNeedsCsMode()
This test is about ensuring that deprecated sniffs messages are not
displayed when viewing sniff documentation, and it was added in 2507c78
(see #281).
Before, passing any value to the `generator` parameter was enough and
so, probably due to a typo, `text` was passed which does not correspond
to a valid generator.
The code being tested only checks if `Config::generator` is not `null`:
https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/2507c78d6aa8fe714b19d5e62519cd75f0a3aceb/src/Ruleset.php#L343
Now that `Config` throws an exception when an invalid generator is
passed. The test had to be adjusted to use a valid generator name.1 parent 3b6c8c6 commit 7141e6d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| |||
0 commit comments