File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
src/Magento/FunctionalTestingFramework Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 77
88namespace Magento \FunctionalTestingFramework \Console ;
99
10+ use Magento \FunctionalTestingFramework \Util \Logger \LoggingUtil ;
1011use Symfony \Component \Console \Command \Command ;
1112use Symfony \Component \Console \Input \ArrayInput ;
1213use Symfony \Component \Filesystem \Filesystem ;
1718use Magento \FunctionalTestingFramework \Util \Env \EnvProcessor ;
1819use Symfony \Component \Yaml \Yaml ;
1920
21+ /**
22+ * Class BuildProjectCommand
23+ * @package Magento\FunctionalTestingFramework\Console
24+ *
25+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
26+ */
2027class BuildProjectCommand extends Command
2128{
2229 const DEFAULT_YAML_INLINE_DEPTH = 10 ;
@@ -147,6 +154,12 @@ private function generateConfigFiles(OutputInterface $output)
147154 self ::CREDENTIALS_FILE_PATH
148155 );
149156
157+ // Remove and Create Log File
158+ $ logPath = LoggingUtil::getInstance ()->getLoggingPath ();
159+ $ fileSystem ->remove ($ logPath );
160+ $ fileSystem ->touch ($ logPath );
161+ $ fileSystem ->chmod ($ logPath , 0777 );
162+
150163 $ output ->writeln ('.credentials.example successfully applied. ' );
151164 }
152165}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function getLogger($clazz)
7575 *
7676 * @return string
7777 */
78- private function getLoggingPath ()
78+ public function getLoggingPath ()
7979 {
8080 return TESTS_BP . DIRECTORY_SEPARATOR . "mftf.log " ;
8181 }
You can’t perform that action at this time.
0 commit comments