<?php
/**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
->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)
$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) {
->shouldReceive('get')
->with('database', 'database')
->andReturn(getenv('MYSQL_DATABASE'));
- $this->configMock
- ->shouldReceive('get')
- ->with('database', 'disable_pdo')
- ->andReturn(true);
$this->configMock
->shouldReceive('get')
->with('config', 'hostname')