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.
+++ b/lib/Drupal/views/Tests/Plugin/FilterTest.phpundefined
@@ -0,0 +1,144 @@
+ // Check that our operator and value match on the filter.
+ $this->assertEqual($view->filter['test_filter']->operator, '=');
+ $this->assertEqual($view->filter['test_filter']->value, 'John');
These should use assertIdentical
+++ b/lib/Drupal/views/Tests/Plugin/FilterTest.phpundefined
@@ -0,0 +1,144 @@
+ // Check that our operator and value match on the filter.
+ $this->assertEqual($view->filter['test_filter']->operator, "<>");
+ $this->assertEqual($view->filter['test_filter']->value, "John");
These should use assertIdentical, and single quotes around John
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedAssigning to me, I will look at this in the morning on my train.
Comment #2
damiankloip CreditAttribution: damiankloip commentedDelayed, but here are some tests I did yesterday. Modified for the new views test module structure.
Comment #3
damiankloip CreditAttribution: damiankloip commentedSorry, removing me, so people actually look :)
Comment #4
dawehnerI see what you talked about before, maybe this would make sense to be moved to a general test for all plugin types, but just maybe.
The rest of the patch looks great.
Just nitpicking, this should have a documentation that there is an override
Shouldn't we check even more then just the fact that it got added?
I see what you talked about before, maybe this would make sense to be moved to a general test for all plugin types, but just maybe.
Comment #5
damiankloip CreditAttribution: damiankloip commentedThanks, updated patch.
Comment #6
tim.plunkettThis looks awesome!
These should use assertIdentical
These should use assertIdentical
These should use assertIdentical, and single quotes around John
What's with the {}? Haven't seen that
Missing a docblock
Comment #7
damiankloip CreditAttribution: damiankloip commentedAll looks reasonable, I'll post a new patch in a few hours.
Comment #8
damiankloip CreditAttribution: damiankloip commentedHere are all of tim.plunkett's comments too.
Comment #9
dawehnerAnd go!
Comment #10
dawehnerSo it's committed now