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.
When testing block visibility the url user* is provided in drupalGet. Then is tested if the block does not appear. This is always true, because user* generates 'page not found'. And blocks are not rendered on 'page not found'.
I found this because we are trying to remove show_blocks on 404.
Comment | File | Size | Author |
---|---|---|---|
#2 | block-test-wrong-url-2.patch | 2.06 KB | davyvdb |
block-test-wrong-url.patch | 737 bytes | davyvdb | |
Comments
Comment #2
davyvdb CreditAttribution: davyvdb commentedI've rewritten the test a bit to use a custom block instead of the Syndicate block.
Comment #3
JohnAlbinWe can't remove the tests for "no blocks on 404 pages" until we remove the show_blocks setting. So this patch should be combined with #423992: Remove show_blocks page variable.