-
Task
-
Resolution: Fixed
-
Should have
-
None
-
2
-
Sprint #52, Sprint #53
Refactor the Blocks main Controller code and each one of the blocks controllers by separating the concerns of the prepare_template method.
The prepare_template method should be concerned only with rendering the template and the prepare_data method should be concerned only with getting the data which will be used for rendering the template.
This way we can Unit test the code that prepares the data without testing also the rendering of the data.
- has to be finished together with
-
PLANET-2515 Create 3 php unit tests
- CLOSED