mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Add test for css() and script() with the same resource identifier
This commit is contained in:
parent
e00aa596b1
commit
7bea96f534
1 changed files with 16 additions and 0 deletions
|
@ -899,6 +899,22 @@ class HtmlHelperTest extends CakeTestCase {
|
|||
CakePlugin::unload('TestPlugin');
|
||||
}
|
||||
|
||||
/**
|
||||
* Resource names must be treated differently for css() and script()
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function testBufferedCssAndScriptWithIdenticalResourceName() {
|
||||
$this->View->expects($this->at(0))
|
||||
->method('append')
|
||||
->with('css', $this->stringContains('test.min.css'));
|
||||
$this->View->expects($this->at(1))
|
||||
->method('append')
|
||||
->with('script', $this->stringContains('test.min.js'));
|
||||
$this->Html->css('test.min', array('inline' => false));
|
||||
$this->Html->script('test.min', array('inline' => false));
|
||||
}
|
||||
|
||||
/**
|
||||
* test timestamp enforcement for script tags.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue