Closed (fixed)
Project:
Context
Version:
7.x-3.0-beta6
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Apr 2013 at 15:23 UTC
Updated:
11 Aug 2013 at 01:41 UTC
Reaction: block ajax failed the unit test on checking the text output ('"status":1' and "Who's online"). The test module is testing these against the assertText method. I think assertNoText should be used as I think this is testing that the status is 0 and you can't see who's online.
I would suggest changing lines 98 & 99 to:
$this->assertNoText('"status":1');
$this->assertNoText("Who's online");
or
$this->assertText('"status":0');
$this->assertNoText("Who's online");
Comments
Comment #1
tekante commentedFixed with commit 6f7cb1a236774df2666968f638046481e767b63a. Note that drupal_hash_salt must be set for this test to pass due to need to use drupal_token. Salts automatically derived from database connection info will cause this test to fail. Thanks for the bug report.