Skip to content

Commit

Permalink
#32 Added missing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
amostajo committed Feb 15, 2020
1 parent a9203e4 commit 11554ff
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/cases/CreateAssetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,20 @@ public function testScssMasterAndParts()
$this->assertPregMatchContents('/\@import(|\s)\\\'parts\/header\\\'\;/', $masterfile);
$this->assertPregMatchContents('/\@import(|\s)\\\'parts\/footer\\\'\;/', $masterfile);
}
/**
* Tests sass gitignore update.
* @group assets
* @group scss
*/
public function testScssGitignore()
{
// Prepare
$filename = FRAMEWORK_PATH.'/environment/.gitignore';
// Execute
exec('php '.WPMVC_AYUCO.' create scss:theme');
// Assert
$this->assertFileExists($filename);
$this->assertPregMatchContents('/\# SASS COMPILATION/', $filename);
unlink($filename);
}
}

0 comments on commit 11554ff

Please sign in to comment.