public function TagadelicTaxonomyTestCase::testOrdersTagsByUsage in Tagadelic 7.2
File
- tests/
tagadelic_taxonomy.test, line 88
Class
Code
public function testOrdersTagsByUsage() {
$this
->createVocAndTags(3, FALSE);
$this
->createNodesWithTags(3);
$this
->drupalGet("tagadelic_taxonomy");
$tags = $this
->xpath("//*/ul[@class='tag-cloud']/li/a");
$found = array();
foreach ($tags as $tag) {
$attributes = $tag
->attributes();
$found[] = (string) $attributes["href"];
}
$this
->assertEqual($found, [
"/taxonomy/term/3",
"/taxonomy/term/2",
"/taxonomy/term/1",
]);
}