You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor symfony#50729 [CssSelector] Tests on Xpath translator will always pass (franckranaivo)
This PR was merged into the 5.4 branch.
Discussion
----------
[CssSelector] Tests on Xpath translator will always pass
While working on another PR (symfony#49388), I noticed that the assertion below will always pass as it is testing the count of the same array on both side.
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets |
| License | MIT
| Doc PR |
Instead of
`$this->assertCount(\count($elementsId), $elementsId);`
It should be
`$this->assertCount(\count($elementsId), $elements);`
This PR should fix also numbers and/or Xpath translator issues from this fixed assertion.
P.S.
This is the right PR for this issue (symfony#50726)
Commits
-------
bb123ab [CssSelector] Tests on Xpath translator will always pass
0 commit comments