lithium\tests\cases\template\helper\HtmlTest::testHead PHP Method

testHead() public method

Tests generating random tags for the section
public testHead ( )
    public function testHead()
    {
        $result = $this->html->head('meta', array('options' => array('author' => 'foo')));
        $expected = array('meta' => array('author' => 'foo'));
        $this->assertTags($result, $expected);
        $result = $this->html->head('unexisting-name', array('options' => array('author' => 'foo')));
        $this->assertNull($result);
    }