Closed (fixed)
Project:
Flag
Version:
5.x-dev
Component:
Flag core
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2017 at 06:56 UTC
Updated:
2 Nov 2025 at 13:04 UTC
Jump to comment: Most recent
// 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!
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
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 commentedWe should remove the test for getUserFlagFlaggingCount() on a global count as it does not make sense.
Comment #4
joachim commentedBeta blocker, because we need rid of this in the tests to be able to remove the setGlobal() method.
Comment #5
ivnishNeeds check
Comment #9
deaom commentedUpdated the test to set global tag separately and removed the "switching to global tag". Needs review.
Comment #11
ivnishMerged! Thanks!