You are here

public function TagadelicTagToStringTest::test__ToStringHasTitle in Tagadelic 7.2

@covers tagadelictag::__tostring

File

tests/TagadelicTagToStringTest.php, line 49

Class

TagadelicTagToStringTest
Class Tagadelictagtostringtest

Code

public function test__ToStringHasTitle() {
  $this->object
    ->set_description("Foo Bar");
  $expected_attrs = array(
    "title" => "Foo Bar",
  );
  $this->drupal
    ->expects($this
    ->any())
    ->method('l')
    ->with($this
    ->anything(), $this
    ->anything(), $this
    ->equalto(array(
    "attributes" => $expected_attrs,
  )))
    ->will($this
    ->returnvalue(""));
  $this->object
    ->__tostring();
}