<?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
*
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;
* @var App\Mode|MockInterface $appMode
*/
private $appMode;
- /** @var IConfig|LegacyMockInterface|MockInterface */
+ /** @var IManageConfigValues|LegacyMockInterface|MockInterface */
private $configMock;
protected function setUp() : void
$this->appMode->shouldReceive('has')
->andReturn(true);
- $this->configMock = Mockery::mock(IConfig::class);
+ $this->configMock = Mockery::mock(IManageConfigValues::class);
}
public function testSetGetKeyValue()
$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()