Since #1995048: EntityListController::getOperations() should respect access checks went in, all entity types with list controllers need an access controller.
FilterFormat doesn't have one.
More importantly, no tests failed.
To reproduce, go to admin/config/content/formats and notice you have no links to edit the formats.
Uploading a patch from that issue, but it needs tests first anyway.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | filter-access-controller-2030129-8.patch | 3.92 KB | a_c_m |
| #5 | filter-access-controller-2030129-5.patch | 2.61 KB | a_c_m |
| #4 | filter-configure-link-check-2030129-4.patch | 1.19 KB | a_c_m |
| #3 | filter-configure-link-check-2030129-3.patch | 1.12 KB | a_c_m |
| filter-access-controller-do-not-test.patch | 2.73 KB | tim.plunkett |
Comments
Comment #1
alexpottWe need to add a test using clickLink() so that we actually test the page
Comment #2
a_c_m commentedOk, been digging about.
I see the error. But don't understand why its not failing as is ?
I've viewed source on admin/config/content/formats and i can't find the link the test asserts should be there ()... so i'm confused as to how the $this->assertLinkByHref isn't failing...
Also clickLink (https://api.drupal.org/api/drupal/modules!simpletest!drupal_web_test_cas...) doesn't appear to have a way to select which version of the link you want, as there may be more than one "Configure" link on the page, i wanted to be sure we were clicking the right one.
As i'm new to all this i expect i'm missing the point somewhere.
Comment #3
a_c_m commentedSo yeah, turns out its sort of an issue with assertLinkByHref which checks for contains, instead of an exact match.
ContactSiteWideTest.php has a fix, which i will copy. But, it looks like that code had its own issue ;) So will fix that as well in another issue (#2031211: Check for URL's absence will always pass due to wrong var name)
Comment #4
a_c_m commentedUpdated patch to reference parent issue : #2031223: Add linkByHrefExistsExact and linkByHrefNotExistsExact for matching links by href exactly
Comment #5
a_c_m commentedPutting both patches together.
Comment #7
a_c_m commented#5: filter-access-controller-2030129-5.patch queued for re-testing.
Comment #8
a_c_m commentedadding missing file.
Comment #10
berdirLooks like a random fail:
Last checked is updated Other LocaleUpdateCronTest.php 120 Drupal\locale\Tests\LocaleUpdateCronTest->testUpdateCron().Comment #11
berdir#8: filter-access-controller-2030129-8.patch queued for re-testing.
Comment #12
berdirThis looks good, thank you.
Comment #13
alexpottNoticed a comment error... did the following change on change (thanks @berdir)
Committed 165ec2c and pushed to 8.x. Thanks!