Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2010 at 19:53 UTC
Updated:
5 Dec 2010 at 10:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedWe should standardize on an empty array, so that you can use the query result in a
foreach(...)loop.It turns out, the RDFa tests were completely broken. The selectors were all wrong:
- position() starts with 1, not with 0
- position() cannot be used in this way (it is relative to the node context)
- the class needs a @contain
This one should pass.
Comment #2
damien tournoud commentedThis is blocking #933270: Taxonomy terms are incorrectly affected, so it is critical.
Comment #3
marcvangendLooks good.
Typo; should be "combinations".
Powered by Dreditor.
Comment #4
carlos8f commentedI agree on the usefulness of the patch, but strictly speaking it doesn't block #933270: Taxonomy terms are incorrectly affected. It's simply a matter of using $this->assertFalse($links) or $this->assertTrue(empty($links)) rather than $this->assertFalse(count($links)).
Comment #5
damien tournoud commentedWith text edit from #3.
Comment #7
sunShouldn't we check
$result === FALSE
or
is_bool($return)
?
Powered by Dreditor.
Comment #8
damien tournoud commentedxpath()returnsNULL,FALSEorarray()depending on the PHP version and libxml2 version. We normalize all of those toarray().Comment #9
damien tournoud commented#5: 933856-xpath-return-value.patch queued for re-testing.
Comment #10
mark trapp#977184: FormElementTestCase::testOptions() should fail, doesn't is the result of this bug. FormElementTestCase::testOptions() should fail, but for most people (including the HEAD tester), it doesn't.
Comment #11
Stevel commentedThis patch makes the RDFa tests pass on an environment where they were otherwise broken.
Comment #12
webchickUgh, that really sucks we have to work around a PHP lmiitation like that, but I don't really see another way... this patch blocks pgsql tests passing.
Committed to HEAD.