mirror of
https://github.com/friendica/friendica
synced 2025-04-24 01:50:17 +00:00
Replace string namespaces with ::class
This commit is contained in:
parent
9f11476ca0
commit
5fc42a744e
11 changed files with 52 additions and 26 deletions
|
@ -2,6 +2,7 @@
|
|||
|
||||
namespace Friendica\Test\src\Core\Console;
|
||||
|
||||
use Friendica\App\Mode;
|
||||
use Friendica\Core\Console\Config;
|
||||
|
||||
/**
|
||||
|
@ -16,12 +17,12 @@ class ConfigConsoleTest extends ConsoleTest
|
|||
parent::setUp();
|
||||
|
||||
\Mockery::getConfiguration()->setConstantsMap([
|
||||
'Friendica\App\Mode' => [
|
||||
Mode::class => [
|
||||
'DBCONFIGAVAILABLE' => 0
|
||||
]
|
||||
]);
|
||||
|
||||
$mode = \Mockery::mock('Friendica\App\Mode');
|
||||
$mode = \Mockery::mock(Mode::class);
|
||||
$mode
|
||||
->shouldReceive('has')
|
||||
->andReturn(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue