#87746remove assertAttribute* calls from core tests
Description
phpunit has deprecated and will remove all assertAttribute* methods from the framework in version 9.
Read more about the process and motivation here:
https://github.com/sebastianbergmann/phpunit/issues/3338
https://github.com/sebastianbergmann/phpunit/issues/3339
The core tests contain only 38 hits to the affected methods, so the replacement should be relatively easy. With this done, we are ready to update to the next phpunit versions.