Support for QueryPath-based assertions
DamienMcKenna - October 7, 2009 - 04:46
| Project: | SimpleTest |
| Version: | 7.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Imagine:
<?php
$this->drupalGet('user/register')
$this->assertQP('body.not-logged-in')->assertQP('h2')->assertTest('User account');
?>Linking QueryPath's syntax ease of use with SimpleTest's assertions.

#1
Already supports xpath(). Since this is developed in Drupla 7 core and just backported here it would need to be done in a way that it was simply an addon/plugin that was optional.
So, not sure how that would be done, but QueryPath could also provide a test case that extends DrupalWebTestCase to provide this.
#2
Open season, lets look into making this pluggable or something, although it may just be best to make a custom test case provided by your module.