]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/AppMockTrait.php
2021.09 CHANGELOG one numbered issue more is closed
[friendica.git] / tests / Util / AppMockTrait.php
index c2af4ad459c6dd3616f49d471cdb0ee4fb667336..4266a4a0238c9fafea32882a102bafa15443a148 100644 (file)
@@ -101,6 +101,8 @@ trait AppMockTrait
                        ->andReturn($root->url());
 
                $this->profilerMock = \Mockery::mock(Profiler::class);
+               $this->profilerMock->shouldReceive('startRecording');
+               $this->profilerMock->shouldReceive('stopRecording');
                $this->profilerMock->shouldReceive('saveTimestamp');
                $this->dice->shouldReceive('create')
                           ->with(Profiler::class)
@@ -115,10 +117,10 @@ trait AppMockTrait
                $this->app
                        ->shouldReceive('getCurrentTheme')
                        ->andReturn('Smarty3');
-               $this->app->shouldReceive('setThemeInfoValue')
+               $this->app->shouldReceive('getThemeInfoValue')
                        ->with('videowidth')
                        ->andReturn(425);
-               $this->app->shouldReceive('setThemeInfoValue')
+               $this->app->shouldReceive('getThemeInfoValue')
                        ->with('videoheight')
                        ->andReturn(350);