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.
// Switch to a global flag, the accounting rules.
$this->flag->setGlobal(TRUE);
We don't support changing the scope of a flag, so the test should not do this either.
This probably makes the test meaningless at the moment, as the test first flags a node by two different users, then changes the flag to global. A global flag would never have the same node flagged by two users!
Comments
Comment #2
joachim CreditAttribution: joachim commentedI'm not actually sure what this part of the test is testing, so I've filed #2870697: getUserFlagFlaggingCount() should document its behaviour with global flags.
Comment #3
c.nish2k3 CreditAttribution: c.nish2k3 as a volunteer commentedWe should remove the test for getUserFlagFlaggingCount() on a global count as it does not make sense.
Comment #4
joachim CreditAttribution: joachim commentedBeta blocker, because we need rid of this in the tests to be able to remove the setGlobal() method.