tagadelic.test in Tagadelic 7.2
File
tests/tagadelic.test
View source
<?php
class TagadelicTestCase extends DrupalWebTestCase {
public static function getInfo() {
return array(
"name" => "Tagadelic Test",
"description" => "Tests if Tagadelic correctly adds the libraries",
"group" => "Tagadelic",
);
}
public function setUp() {
parent::setUp(array(
'tagadelic',
));
}
public function testAutoloader() {
$tag = new TagadelicTag(12, "jane", 2);
$cloud = new TagadelicCloud(1337);
$drupal = new TagaDelicDrupalWrapper();
$this
->assertEqual("TagadelicTag", get_class($tag));
$this
->assertEqual("TagadelicCloud", get_class($cloud));
$this
->assertEqual("TagadelicDrupalWrapper", get_class($drupal));
}
}