test: refactor codes in fixtures
Use let or const and arrow function.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test
Do not update/delete: Banner broadcast message test data
Do not update/delete: Notification broadcast message test data