You are here

public function TagadelicTagToStringTest::test__ToStringHasWeight in Tagadelic 7.2

@covers tagadelictag::__tostring

File

tests/TagadelicTagToStringTest.php, line 84

Class

TagadelicTagToStringTest
Class Tagadelictagtostringtest

Code

public function test__ToStringHasWeight() {
  $this->object
    ->set_weight(3);
  $expected_attrs = array(
    "class" => array(
      "level3",
    ),
  );
  $this->drupal
    ->expects($this
    ->any())
    ->method('l')
    ->with($this
    ->anything(), $this
    ->anything(), $this
    ->equalto(array(
    "attributes" => $expected_attrs,
  )))
    ->will($this
    ->returnvalue(""));
  $this->object
    ->__tostring();
}