This commit is contained in:
Michael 2021-07-27 06:22:37 +00:00
parent 72bc1238ba
commit 9ce43ad21d
7 changed files with 16 additions and 0 deletions

View file

@ -27,6 +27,8 @@ class ProcessTest extends DatabaseTest
$logger = new NullLogger();
$profiler = \Mockery::mock(Profiler::class);
$profiler->shouldReceive('startRecording');
$profiler->shouldReceive('stopRecording');
$profiler->shouldReceive('saveTimestamp')->withAnyArgs()->andReturn(true);
// load real config to avoid mocking every config-entry which is related to the Database class

View file

@ -51,6 +51,8 @@ class DatabaseStorageTest extends StorageTest
{
$logger = new NullLogger();
$profiler = \Mockery::mock(Profiler::class);
$profiler->shouldReceive('startRecording');
$profiler->shouldReceive('stopRecording');
$profiler->shouldReceive('saveTimestamp')->withAnyArgs()->andReturn(true);
// load real config to avoid mocking every config-entry which is related to the Database class

View file

@ -52,6 +52,8 @@ class FilesystemStorageTest extends StorageTest
{
$logger = new NullLogger();
$profiler = \Mockery::mock(Profiler::class);
$profiler->shouldReceive('startRecording');
$profiler->shouldReceive('stopRecording');
$profiler->shouldReceive('saveTimestamp')->withAnyArgs()->andReturn(true);
/** @var MockInterface|L10n $l10n */