Fix a failed test for protected branch cache
What does this MR do and why?
Contributes to #366724 (closed)
Reported in !92937 (comment 1075418794)
Problem
The protected branch cache is not refreshed and causes a spec failure.
Solution
Use service instead of the FactoryBot method.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin