Problem/Motivation

O! Ye olde FlagSimpleTest! Ye were the teste first claf we created, but yay, ye time has cometh.

FlagSimpleTest started as a test for the most default settings of Flag, but many of these cases are now moved to other test classes.

Proposed resolution

Refactor away FlagSimpleTest to more functionality-specific test classes.

Remaining tasks

Fix the following child issues.

#2619226: Remove flag count tests from FlagSimpleTest
#2702899: Create LinkPermissionAccessTest
#2702911: Create Deletion Test Class

Then remove FlagSimpleTest itself.

User interface changes

None.

API changes

None.

Data model changes

None.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

socketwench created an issue. See original summary.

joachim’s picture

+1, but didn't I already file an issue for this ages ago?

I've certainly been gradually whittling away at FlagSimpleTest over the last few months and moving bits to other classes.

socketwench’s picture

I think you did: #2564461: rationalize & clean up test classes

It seemed, though, that patch was so big that no one really worked on it afterward. Now we're taking a more nibble-away at it approach and we're making progress.

socketwench’s picture

Issue summary: View changes
martin107’s picture

Title: Refactor away FlagSimpleTest » [Meta] Refactor away FlagSimpleTest
socketwench’s picture

Looking at it now, there's no point to FlagSimpleTest any longer. We create the flag with the form all over the place (via FlagTestBase), and all of the counts tests are now in FlagCountsTest and much better organized. Let's just remove the class and be done with it.

martin107’s picture

Status: Active » Reviewed & tested by the community

I am happy with this. +1

socketwench’s picture

I realized after posting this that there is just one check we do in FlagSimpleTest that we don't do anywhere else: checking for the lack of anonymous flag operation.

I've created the following issue, but it's currently experiencing failures: #2715473: Create FlagPermissionTest

  • socketwench committed 2afb31a on 8.x-4.x
    Issue #2702043 by socketwench: Die, FlagSimpleTest, die.
    
socketwench’s picture

Status: Reviewed & tested by the community » Fixed

Now that we have FlagPermissionsTest, there is absolutely no point to FlagSimpleTest.

It's dead now.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.