AutoInstall Test fix
- New Mock for Renderer - No need of prepared assert.ini.php anymore - Mocking Renderer during Autoinstall
This commit is contained in:
parent
cbc5e12ea8
commit
4f01a198e1
4 changed files with 79 additions and 120 deletions
|
@ -62,14 +62,6 @@ trait AppMockTrait
|
|||
$this->app
|
||||
->shouldReceive('getCurrentTheme')
|
||||
->andReturn('Smarty3');
|
||||
$this->app
|
||||
->shouldReceive('getTemplateLeftDelimiter')
|
||||
->with('smarty3')
|
||||
->andReturn('{{');
|
||||
$this->app
|
||||
->shouldReceive('getTemplateRightDelimiter')
|
||||
->with('smarty3')
|
||||
->andReturn('}}');
|
||||
$this->app
|
||||
->shouldReceive('saveTimestamp')
|
||||
->andReturn(true);
|
||||
|
@ -77,14 +69,6 @@ trait AppMockTrait
|
|||
->shouldReceive('getBaseUrl')
|
||||
->andReturn('http://friendica.local');
|
||||
|
||||
// Mocking the Theme
|
||||
// Necessary for macro engine with template files
|
||||
$themeMock = \Mockery::mock('alias:Friendica\Core\Theme');
|
||||
$themeMock
|
||||
->shouldReceive('install')
|
||||
->with('testtheme')
|
||||
->andReturn(true);
|
||||
|
||||
BaseObject::setApp($this->app);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue