Testing: tests for advanced search form

robertDouglass - September 14, 2008 - 09:48
Project:Drupal
Version:7.x-dev
Component:tests
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed
Description

This patch adds tests that confirms the "type" field on the advanced search form. The trail is blazed for other advanced search form tests.

AttachmentSizeStatusTest resultOperations
advsearchform.patch3.25 KBIgnoredNoneNone

#1

franskuipers - September 14, 2008 - 10:52

Just done the single test in this patch. Platform: XAMPP (Apache/2.2.4 (Win32) ; PHP/5.2.2 )

result is:
Search
28 passes, 0 fails, 0 exceptions
Advanced search form
Indexes content and tests the advanced search form.

Also done complete search module tests, results:
Search
175 passes, 0 fails, 0 exceptions
Advanced search form
Bike shed
Search engine queries
Search engine ranking

#2

catch - September 14, 2008 - 11:13
Category:feature request» bug report
Priority:normal» critical
Status:needs review» needs work

There's one typo, finsh, and testNodeType() isn't documented apart from inside the function.

I'm not sure why get_object_vars() is necessary here - why not $node->foo?

Also, status change to reflect adding coverage ;)

#3

robertDouglass - September 16, 2008 - 11:49
Status:needs work» needs review

@catch: fixed typo, added some documentation to testNodeType(). I updated get_object_vars to just stowing the node and accessing its components directly.

AttachmentSizeStatusTest resultOperations
advanced-search-test.patch3.54 KBIgnoredNoneNone

#4

robertDouglass - September 16, 2008 - 11:52

Ok, that's the second time today Ctrl+s has failed me.

AttachmentSizeStatusTest resultOperations
advanced-search-test.patch3.35 KBIgnoredNoneNone

#5

catch - September 16, 2008 - 21:43
Status:needs review» reviewed & tested by the community

Got a couple of syntax errors so re-rolled. Everything else looks fine, so marking this RTBC since there's no changes in the logic.

AttachmentSizeStatusTest resultOperations
advanced-search-test.patch4.42 KBIgnoredNoneNone

#6

webchick - September 17, 2008 - 05:12
Status:reviewed & tested by the community» fixed

Looked through. Code is well documented and easy to follow. There were some missing periods on the end of the single-line comments that I just couldn't let go, but fixed those and committed. Thanks! :)

#7

Anonymous (not verified) - October 1, 2008 - 05:22
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.