TagadelicTagTest.php in Tagadelic 7.2
File
tests/TagadelicTagTest.php
View source
<?php
require_once 'TagadelicTag.php';
require_once 'TagadelicDrupalWrapper.php';
class TagadelicTagTest extends PHPUnit_Framework_TestCase {
protected $object;
protected function setUp() {
$this->drupal = $this
->getMock("TagadelicDrupalWrapper", array(
"check_plain",
"l",
));
$this->drupal
->expects($this
->any())
->method('check_plain')
->will($this
->returnArgument(0));
$this->object = new TagadelicTag(42, "blackbeard", 2);
$this->object
->set_drupal($this->drupal);
}
protected function tearDown() {
}
}