You are here

protected function TagadelicTagTest::setUp in Tagadelic 7.2

Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.

1 call to TagadelicTagTest::setUp()
TagadelicTagToStringTest::setUp in tests/TagadelicTagToStringTest.php
Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.
1 method overrides TagadelicTagTest::setUp()
TagadelicTagToStringTest::setUp in tests/TagadelicTagToStringTest.php
Sets up the fixture, for example, opens a network connection. This method is called before a test is executed.

File

tests/TagadelicTagTest.php, line 19

Class

TagadelicTagTest
Generated by PHPUnit_SkeletonGenerator on 2012-05-16 at 15:22:10.

Code

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);
}