You are here

public function TagadelicCloudTest::test__construct in Tagadelic 7.2

constructor should set the ID to the variable passed.

File

tests/TagadelicCloudTest.php, line 36

Class

TagadelicCloudTest
Generated by PHPUnit_SkeletonGenerator on 2012-05-16 at 15:23:33.

Code

public function test__construct() {

  // First param should be assigned to the id.
  $this
    ->assertAttributeSame(1337, "id", $this->object);

  // Optional second argument pre-sets the tags.
  $this->object = new TagadelicCloud(1337, $this->mock_tags);
  $this
    ->assertAttributeSame($this->mock_tags, "tags", $this->object);
}