use xml parser, not html

This commit is contained in:
Christian Weiske 2011-04-15 07:56:50 +02:00
parent a25838b267
commit b2c48977bb

View File

@ -16,13 +16,13 @@ class www_SearchTest extends TestBaseApi
$res = $this->getRequest('/all/foo+bar')->send();
$this->assertSelectCount(
'.xfolkentry', true, $res->getBody(),
'No bookmark found'
'No bookmark found', false
);
$res = $this->getRequest('/all/baz+bat')->send();
$this->assertSelectCount(
'.xfolkentry', false, $res->getBody(),
'Bookmarks found'
'Bookmarks found', false
);
}
@ -38,13 +38,13 @@ class www_SearchTest extends TestBaseApi
$res = $this->getRequest('/all/foo bar')->send();
$this->assertSelectCount(
'.xfolkentry', true, $res->getBody(),
'No bookmark found'
'No bookmark found', false
);
$res = $this->getRequest('/all/baz bat')->send();
$this->assertSelectCount(
'.xfolkentry', false, $res->getBody(),
'Bookmarks found'
'Bookmarks found', false
);
}