[FrameworkBundle] Fixed the tests

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

This template was already converted to a one liner before in b85577bb9608008ffbe92586046cbaff76c2717e, but
that change was reverted when merging and solving conflicts from 2.3 branch (07de76122b09fd5a9837222f9346b7794df000b2).