Download & Extend

Testing: tests for advanced search form

Project:Drupal core
Version:7.x-dev
Component:tests
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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 KBIgnored: Check issue status.NoneNone

Comments

#1

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

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

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 KBIgnored: Check issue status.NoneNone

#4

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

AttachmentSizeStatusTest resultOperations
advanced-search-test.patch3.35 KBIgnored: Check issue status.NoneNone

#5

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 KBIgnored: Check issue status.NoneNone

#6

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

Status:fixed» closed (fixed)

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