Refactor template engine code
- Convert ITemplateEngine interface to abstract class - Remove dependency to App in FriendicaSmarty and FriendicaSmartyEngine - Normalize replaceMacro parameter behavior using Smarty template string prefixes - Remove obsolete FriendicaSmarty->parsed method - Update unused Smarty directory paths
This commit is contained in:
parent
75a0b80888
commit
c6ba92c43d
5 changed files with 97 additions and 72 deletions
|
|
@ -108,7 +108,7 @@ trait AppMockTrait
|
|||
->andReturn($this->configMock);
|
||||
$this->app
|
||||
->shouldReceive('getTemplateEngine')
|
||||
->andReturn(new FriendicaSmartyEngine());
|
||||
->andReturn(new FriendicaSmartyEngine('frio', []));
|
||||
$this->app
|
||||
->shouldReceive('getCurrentTheme')
|
||||
->andReturn('Smarty3');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue