- Issue created by @joaopauloc.dev
- Merge request !135Adding contextual user option to the Flag views relationship → (Open) created by joaopauloc.dev
- 🇧🇷Brazil joaopauloc.dev
Thanks for the quick review @ivnish.
PHPCS issues fixed.
Thanks. - ivnish Kazakhstan
Let's create a test with demonstration that it works as expected
- 🇧🇷Brazil joaopauloc.dev
Hey @ivnish, I can create a test for this one.
I’ve never written a test specifically for a view relationship. Do you happen to have an example you could share?
I looked at some examples in Drupal core, but they weren’t very helpful.I did write a test for a view once — I exported the view and installed it in the test environment. Then I created the required entities, loaded the view programmatically, and executed it. But I’m not sure if that’s the best approach for this specific case. What do you think?