Fixes unit tests

This commit is contained in:
Sam Georges 2014-06-06 22:08:33 +10:00
parent ab889f0973
commit b0f78e66b2
1 changed files with 0 additions and 2 deletions

View File

@ -70,12 +70,10 @@ class CombineAssetsTest extends TestCase
$combiner = new CombineAssets;
$url = $combiner->combine(['assets/css/style1.css', 'assets/css/style2.css'], '/tests/fixtures/Cms/themes/test');
$this->assertNotNull($url);
$this->assertRegExp('/\.css$/i', $url); // Must end in .css
$this->assertRegExp('/\w+[-]\d+/i', $url); // Must contain hash-number
$url = $combiner->combine(['assets/js/script1.js', 'assets/js/script2.js'], '/tests/fixtures/Cms/themes/test');
$this->assertNotNull($url);
$this->assertRegExp('/\.js$/i', $url); // Must end in .js
$this->assertRegExp('/\w+[-]\d+/i', $url); // Must contain hash-number
}