]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/AppMockTrait.php
Merge pull request #10813 from tobiasd/20211003-lengthcounter
[friendica.git] / tests / Util / AppMockTrait.php
index 47293ced6f3bc52f32f921e1bfd8967c2b627291..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,7 +117,13 @@ trait AppMockTrait
                $this->app
                        ->shouldReceive('getCurrentTheme')
                        ->andReturn('Smarty3');
-
+               $this->app->shouldReceive('getThemeInfoValue')
+                       ->with('videowidth')
+                       ->andReturn(425);
+               $this->app->shouldReceive('getThemeInfoValue')
+                       ->with('videoheight')
+                       ->andReturn(350);
+       
                DI::init($this->dice);
 
                if ($raw) {