]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Console/ConsoleTest.php
Merge branch '2019.03-RC'
[friendica.git] / tests / src / Core / Console / ConsoleTest.php
index 6b58ccced216586ac3837a38ba30647a8fd2ca29..4f7acc9c4229f62223b42cbdfca7121e46bffc81 100644 (file)
@@ -3,17 +3,20 @@
 namespace Friendica\Test\src\Core\Console;
 
 use Asika\SimpleConsole\Console;
+use Friendica\Test\MockedTest;
 use Friendica\Test\Util\AppMockTrait;
 use Friendica\Test\Util\Intercept;
 use Friendica\Test\Util\VFSTrait;
-use PHPUnit\Framework\TestCase;
 
-abstract class ConsoleTest extends TestCase
+abstract class ConsoleTest extends MockedTest
 {
        use VFSTrait;
        use AppMockTrait;
 
-       protected $stdout;
+       /**
+        * @var array The default argv for a Console Instance
+        */
+       protected $consoleArgv = [ 'consoleTest.php' ];
 
        protected function setUp()
        {
@@ -29,13 +32,6 @@ abstract class ConsoleTest extends TestCase
                $this->mockApp($this->root);
        }
 
-       protected function tearDown()
-       {
-               \Mockery::close();
-
-               parent::tearDown();
-       }
-
        /**
         * Dumps the execution of an console output to a string and returns it
         *