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

testMultiNonInlineScriptsAndStyles() public method

Tests that scripts and styles are correctly written to the rendering context even when passing multiple scripts or styles to a single method call.
    public function testMultiNonInlineScriptsAndStyles()
    {
        $result = $this->html->script(array('foo', 'bar'));
        $expected = array(array('script' => array('type' => 'text/javascript', 'src' => 'regex:/.*\\/foo\\.js/')), '/script', array('script' => array('type' => 'text/javascript', 'src' => 'regex:/.*\\/bar\\.js/')), '/script');
        $this->assertTags($result, $expected);
        $this->assertNull($this->html->script(array('foo', 'bar'), array('inline' => false)));
        $result = $this->context->scripts();
        $this->assertTags($result, $expected);
    }