File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
src/Magento/FunctionalTestingFramework Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \FunctionalTestingFramework \Console ;
9
9
10
+ use Magento \FunctionalTestingFramework \Util \Logger \LoggingUtil ;
11
+ use Magento \Invitation \Model \Logging ;
10
12
use Symfony \Component \Console \Command \Command ;
11
13
use Symfony \Component \Console \Input \ArrayInput ;
12
14
use Symfony \Component \Filesystem \Filesystem ;
@@ -147,6 +149,12 @@ private function generateConfigFiles(OutputInterface $output)
147
149
self ::CREDENTIALS_FILE_PATH
148
150
);
149
151
152
+ // Remove and Create Log File
153
+ $ logPath = LoggingUtil::getInstance ()->getLoggingPath ();
154
+ $ fileSystem ->remove ($ logPath );
155
+ $ fileSystem ->touch ($ logPath );
156
+ $ fileSystem ->chmod ($ logPath , 0777 );
157
+
150
158
$ output ->writeln ('.credentials.example successfully applied. ' );
151
159
}
152
160
}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function getLogger($clazz)
75
75
*
76
76
* @return string
77
77
*/
78
- private function getLoggingPath ()
78
+ public function getLoggingPath ()
79
79
{
80
80
return TESTS_BP . DIRECTORY_SEPARATOR . "mftf.log " ;
81
81
}
You can’t perform that action at this time.
0 commit comments