I am currently trying to write some unit test against my zend framework controller. When I run the following code I receive this error:
public function testListActionShouldContainListTable()
{
$this->loginToSystem();
$uri = $this->_uriBase . 'campaign/list';
$_SERVER["REQUEST_URI"] = $uri;
$this->dispatch('/campaign/list');
$this->assertController('campaign');
$this->assertAction('list');
$this->assertQueryCount('#list',1);
}
CampaignControllerTests::testListActionShouldContainListTable
DOMDocument::loadHTML(): ID alrt already defined in Entity, line: 36
This occurs using any of the assertQuery and assertQueryContains methods. I have searched around but am not really finding a good answer to why it won't allow me to find this html node or how to get around this error.
Thanks in advance for any help!