-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webtestcase: Extract some fixtures methods #271
Webtestcase: Extract some fixtures methods #271
Conversation
It would be better to move all the code related to fixtures in a new class but it's impossible because it would break the callbacks calls. So this is a compromise. Here is the corresponding Scrutinizer analysis: |
d2fedf3
to
ac5f745
Compare
any specific reason why you made the implementation using static methods? limits the ability to extend if needed. |
No I had no reason to declare the methods as static. But since it calls functions directly like |
well if you add a factory method to the base class or make it an optional parameter then yes .. |
I remember now why I declared static methods: it was easier to use them since it doesn't require to instantiate an object before calling the methods from
I think that I understand your idea now. Would adding a method like
is a good solution? |
yeah .. I think so (sorry for the late reply) |
This should be done with traits: #332 (comment) |
to the new FixturesLoader class