You are here

public function TagadelicCloudTest::testGetCalculatedTags in Tagadelic 7.2

Get Tags should calculate the weights

File

tests/TagadelicCloudTest.php, line 132

Class

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

Code

public function testGetCalculatedTags() {
  foreach ($this->mock_tags as $mock_tag) {
    $mock_tag
      ->expects($this
      ->once())
      ->method('set_weight')
      ->with($this
      ->greaterThan(0))
      ->will($this
      ->returnSelf());
    $mocks[] = $mock_tag;
  }
  $this->object = new TagadelicCloud(1337, $mocks);
  $this->object
    ->get_tags();
}