Fix EZP-20860: Improve unit test code coverage of EzPublishRestBundle