From 11554ff3c5f78dad39f044d0169238f47edaf0b7 Mon Sep 17 00:00:00 2001 From: Alejandro Mostajo Date: Sat, 15 Feb 2020 00:02:42 -0600 Subject: [PATCH] #32 Added missing test. --- tests/cases/CreateAssetTest.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/cases/CreateAssetTest.php b/tests/cases/CreateAssetTest.php index a215eb4..cd48e63 100644 --- a/tests/cases/CreateAssetTest.php +++ b/tests/cases/CreateAssetTest.php @@ -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); + } }