Re: [fw-general] Zend_Test_PHPUnit_ControllerTestCase: asserting a checkbox is checked

2010-04-29 Thread David Mintz
On Thu, Apr 29, 2010 at 3:24 AM, Núria wrote: > Yesterday I reported the issue: > http://framework.zend.com/issues/browse/ZF-9764 and Matthew resolved it at > the speed of light (many thanks!), so the fix will be included in the next > mini release. > > I guess I won't be demanding a refund just

Re: [fw-general] Zend_Test_PHPUnit_ControllerTestCase: asserting a checkbox is checked

2010-04-29 Thread Núria
Yesterday I reported the issue: http://framework.zend.com/issues/browse/ZF-9764 and Matthew resolved it at the speed of light (many thanks!), so the fix will be included in the next mini release. -- Núria 2010/4/28 Marian Meres > I confirm I had similar problems with css selectors. I didn't di

Re: [fw-general] Zend_Test_PHPUnit_ControllerTestCase: asserting a checkbox is checked

2010-04-28 Thread Marian Meres
I confirm I had similar problems with css selectors. I didn't discover it deeply though, but used xpath assertion instead which worked as expected. m. On Tue, Apr 27, 2010 at 11:04 PM, Núria wrote: > I'm afraid this is a bug. CSS selectors are converted to XPath queries > before the evaluation,

Re: [fw-general] Zend_Test_PHPUnit_ControllerTestCase: asserting a checkbox is checked

2010-04-27 Thread Núria
I'm afraid this is a bug. CSS selectors are converted to XPath queries before the evaluation, and apparently there is something wrong with that conversion. In this case, the expression: #person_acti...@checked="checked"] is transformed to the XPath query: //*...@id='person_active'][chec

[fw-general] Zend_Test_PHPUnit_ControllerTestCase: asserting a checkbox is checked

2010-04-27 Thread David Mintz
I am having some trouble figuring out the magic words. My response body contains this: In the controller test, I when I say $this->assertQuery('#person_active'); the assertion succeeds, but $this->assertQuery('#person_active[checked="checked"]'); fails with 'Failed asserting node D