]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Console/ConfigConsoleTest.php
Just commit config transactions if something changed
[friendica.git] / tests / src / Console / ConfigConsoleTest.php
index bea4399b3ac333c47ba93d49209ec2d7ac07989c..b26b6baf3f853f0112441bd7715162b1793a2fd1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -24,7 +24,7 @@ namespace Friendica\Test\src\Console;
 use Friendica\App;
 use Friendica\App\Mode;
 use Friendica\Console\Config;
-use Friendica\Core\Config\IConfig;
+use Friendica\Core\Config\Capability\IManageConfigValues;
 use Mockery;
 use Mockery\LegacyMockInterface;
 use Mockery\MockInterface;
@@ -35,7 +35,7 @@ class ConfigConsoleTest extends ConsoleTest
         * @var App\Mode|MockInterface $appMode
         */
        private $appMode;
-       /** @var IConfig|LegacyMockInterface|MockInterface */
+       /** @var IManageConfigValues|LegacyMockInterface|MockInterface */
        private $configMock;
 
        protected function setUp() : void
@@ -52,7 +52,7 @@ class ConfigConsoleTest extends ConsoleTest
                $this->appMode->shouldReceive('has')
                                          ->andReturn(true);
 
-               $this->configMock = Mockery::mock(IConfig::class);
+               $this->configMock = Mockery::mock(IManageConfigValues::class);
        }
 
        public function testSetGetKeyValue()
@@ -102,7 +102,7 @@ class ConfigConsoleTest extends ConsoleTest
                $console->setArgument(0, 'config');
                $console->setArgument(1, 'test');
                $txt = $this->dumpExecute($console);
-               self::assertEquals("config.test => \n", $txt);
+               self::assertEquals("config.test => NULL\n", $txt);
        }
 
        public function testSetArrayValue()