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.

http://drupal.org/node/423992

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch failed testing.

davyvdb’s picture

Status: Needs work » Needs review
FileSize
2.06 KB

I've rewritten the test a bit to use a custom block instead of the Syndicate block.

JohnAlbin’s picture

Status: Needs review » Closed (duplicate)

We 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.