Replies: 3 comments
-
Hey @daFish! Thanks for the kind words. First, you could unit test the data table type class. There's no Then, about integration tests - I think it should only test validity of the data table type class, since its registered as a service and may inject other services. Never bothered with it, but I may be wrong here. I haven't written many application tests for data tables in my applications, though I don't think this requires any specific service. Just some assertions whether the response HTML contains records expected for that specific page. It may also test some interactivity (like sorting). |
Beta Was this translation helpful? Give feedback.
-
Thank you for the hints, @Kreyu. I'll use functional tests with assertions to cover my needs to now. Once this works and I have the time, I will try with mocking the interface. |
Beta Was this translation helpful? Give feedback.
-
I'll convert this issue to discussion if you need more help. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi there,
thanks for this bundle which is awesome to work with - even if it is rough around the edges. While working on a couple of data tables I questioned myself how to test these classes? Is there a service I can fetch from the container when writing a
KernelTestCase
?Beta Was this translation helpful? Give feedback.
All reactions