]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Console/ConfigConsoleTest.php
Merge pull request #7068 from MrPetovan/task/7047-theme-error-page
[friendica.git] / tests / src / Core / Console / ConfigConsoleTest.php
index 579b28e026b4a94ff1623c5e4710a65472d27c00..c58b05ec39f9b78b8324f86ff1452a284282a3b8 100644 (file)
@@ -2,6 +2,7 @@
 
 namespace Friendica\Test\src\Core\Console;
 
+use Friendica\App\Mode;
 use Friendica\Core\Console\Config;
 
 /**
@@ -15,20 +16,18 @@ class ConfigConsoleTest extends ConsoleTest
        {
                parent::setUp();
 
+               $this->mockApp($this->root);
+
                \Mockery::getConfiguration()->setConstantsMap([
-                       'Friendica\App\Mode' => [
+                       Mode::class => [
                                'DBCONFIGAVAILABLE' => 0
                        ]
                ]);
 
-               $mode = \Mockery::mock('Friendica\App\Mode');
-               $mode
+               $this->mode
                        ->shouldReceive('has')
                        ->andReturn(true);
 
-               $this->app
-                       ->shouldReceive('getMode')
-                       ->andReturn($mode);
        }
 
        function testSetGetKeyValue() {