public function TagadelicTaxonomyTestCase::testHasWeightedTags in Tagadelic 7.2
File
- tests/
tagadelic_taxonomy.test, line 125
Class
Code
public function testHasWeightedTags() {
$this
->createVocAndTags(10);
$this
->createNodesWithTags(100);
$this
->drupalGet("tagadelic_taxonomy");
$weights = array(
1,
2,
3,
4,
4,
5,
5,
6,
6,
6,
);
$i = 0;
foreach ($this->tags as $tag) {
$weight = $weights[$i++];
$this
->assertTagHasWeight($tag->name, $weight);
}
}