removed unnecessary use

This commit is contained in:
Philipp Holzer 2018-10-31 10:19:33 +01:00
parent 0e22c18a9d
commit 551efde226
No known key found for this signature in database
GPG key ID: 517BE60E2CE5C8A5

View file

@ -3,7 +3,6 @@
namespace Friendica\Test\src\Core\Console; namespace Friendica\Test\src\Core\Console;
use Friendica\Core\Console\Config; use Friendica\Core\Console\Config;
use \Mockery as m;
/** /**
* @runTestsInSeparateProcesses * @runTestsInSeparateProcesses
@ -16,13 +15,13 @@ class ConfigConsoleTest extends ConsoleTest
{ {
parent::setUp(); parent::setUp();
m::getConfiguration()->setConstantsMap([ \Mockery::getConfiguration()->setConstantsMap([
'Friendica\App\Mode' => [ 'Friendica\App\Mode' => [
'DBCONFIGAVAILABLE' => 0 'DBCONFIGAVAILABLE' => 0
] ]
]); ]);
$mode = m::mock('alias:Friendica\App\Mode'); $mode = \Mockery::mock('alias:Friendica\App\Mode');
$mode $mode
->shouldReceive('has') ->shouldReceive('has')
->andReturn(true); ->andReturn(true);