Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As a basic test that checks if the correct functions get calles and the correct classes are instantiated this looks prety good. I would commit this and expand it if needed when we find more bugs or broken features.
Comments
Comment #1
dawehnerLet's implement a views query plugin in PHP :)
Comment #2
aspilicious CreditAttribution: aspilicious commentedAs a basic test that checks if the correct functions get calles and the correct classes are instantiated this looks prety good. I would commit this and expand it if needed when we find more bugs or broken features.
Comment #3
dawehnerIt's for sure kind of problematic that the query plugin itself doesn't define
a lot of methods so you can't test some really expected behavior.
You are totally right, this at least creates a foundation for more detailed tests.