// 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!
Issue fork flag-2870574
Show commands
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:
- 2870574-update-test-scope
changes, plain diff MR !164
- 2870574-test-should-not
compare
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!