public function TagadelicDrupalWrapperTest::testL in Tagadelic 7.2
File
- tests/
TagadelicDrupalWrapperTest.php, line 80
Class
Code
public function testL() {
$this
->assertTrue(method_exists($this->object, "l"));
$this
->assertSame($this->object
->l("text", "path"), "l(text,path,Array)");
$options = array(
"attributes" => array(
"title" => "foo",
),
);
$serialized = serialize($options);
$this
->assertSame($this->object
->l("text", "path", $options), "l(text,path,{$serialized})");
}