help.test needs a cleanup

catch - April 25, 2008 - 15:13
Project:Drupal
Version:7.x-dev
Component:tests
Category:bug report
Priority:normal
Assigned:Unassigned
Status:patch (code needs work)
Description

help.test has several assertions commented out, notably to do with blog and poll modules. It's not clear whether these are broken bits of test or broken bits of code, but we should fix it.

#1

flobruit - April 29, 2008 - 01:03
Status:active» patch (code needs review)

The existing test assumes that every enabled module implements hook_help(), and also uses assertions that could be influenced by external settings (site name, theme, etc).

The help module doesn't provide much besides the implementation of hook_help, and that hook has very loose requirements. The only way to figure out if a module will display help on a certain page is to call its help hook and see if something is returned. There is no guarantee that a module implementing hook_help will display anything on any page.

Here's a patch that works, but I'm still not satisfied with the approach. I'm working on a dummy module whose only purpose would be to test hooks, but that's a different issue.

AttachmentSize
help.test-251237-1.patch3.82 KB

#2

boombatower - May 14, 2008 - 23:01
Component:forum.module» tests

Change component is relation to http://drupal.org/node/253744.

#3

boombatower - May 24, 2008 - 17:53

The issues were stated here, but never fixed: http://drupal.org/node/242475.

#4

catch - June 5, 2008 - 11:31
Status:patch (code needs review)» patch (code needs work)

No longer applies. 1 out of 2 hunks failed.

 
 

Drupal is a registered trademark of Dries Buytaert.