Skip to content
Snippets Groups Projects
Commit b33fb416 authored by Wouter Wolters's avatar Wouter Wolters Committed by Georg Ringer
Browse files

[TASK] Improve PHPunit used assertions

Main changes are:

* Use assertArrayHasKey/assertArrayNotHasKey instead of array_key_exists.
* Fix misordered assertEquals/assertNotEquals arguments.
* Use assertCount instead of assertEquals and count() method.

Resolves: #94751
Releases: master
Change-Id: Iaa0dbb4744bf41f43f4700714ed47910feaab081
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70292


Tested-by: default avatarcore-ci <typo3@b13.com>
Tested-by: default avatarRoman Büchler <info@buechler.pro>
Tested-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
Reviewed-by: default avatarRoman Büchler <info@buechler.pro>
Reviewed-by: default avatarGeorg Ringer <georg.ringer@gmail.com>
parent 5d257b78
Branches
Tags
Showing
with 42 additions and 39 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment