Permalink
Browse files

fixes to unit tests

  • Loading branch information...
kaviththiranga committed Aug 1, 2012
1 parent ab124bc commit 3d3338b40ed84fca718b13e5789f107dce2d3fbd
@@ -116,9 +116,9 @@ public function testCompressString()
$sourceJs = JPATH_BASE . '/test_files/js/case1.js';
$expectedJs = JFile::read(str_ireplace('.js', '.min.js', $sourceJs));
-
+
$testJs = JMediaCompressor::compressString(JFile::read($sourceJs), array('type' => 'js'));
-
+
$this->assertEquals($expectedJs, $testJs);
}
@@ -73,7 +73,7 @@ public function testCompress()
// Put the path to test files for css compressor. (Include expected result in filename.min.css file)
$path = JPATH_BASE . '/test_files/css';
- $files = JFolder::files($path,'.',false,true, array(),array('.min.css','.php','.html'));
+ $files = JFolder::files($path,'.',false,true, array(),array('.min.css','.php','.html','.combined.css'));
foreach ($files as $file)
{
@@ -84,7 +84,7 @@ public function testCompress()
//Put the path to test files for java script compressor.
$path = JPATH_BASE . '/test_files/js';
- $files = JFolder::files($path,'.',false,true, array(),array('.min.js','.php','.html'));
+ $files = JFolder::files($path,'.',false,true, array(),array('.min.js','.php','.html','.combined.js'));
foreach ($files as $file)
{

0 comments on commit 3d3338b

Please sign in to comment.