]> git.mxchange.org Git - friendica.git/blobdiff - tests/Util/AppMockTrait.php
XMPP URI and markdown are no friends (yet)
[friendica.git] / tests / Util / AppMockTrait.php
index 1f6605390c557d335019007a64cdf326bfffde74..c6f07897c6054be4bb072017a7600fc70745b43a 100644 (file)
@@ -25,6 +25,7 @@ use Dice\Dice;
 use Friendica\App;
 use Friendica\Core\Config;
 use Friendica\DI;
+use Friendica\Network\HTTPException\InternalServerErrorException;
 use Friendica\Render\FriendicaSmartyEngine;
 use Friendica\Util\Profiler;
 use Mockery\MockInterface;
@@ -64,7 +65,9 @@ trait AppMockTrait
         * Mock the App
         *
         * @param vfsStreamDirectory $root The root directory
-        * @param bool $raw If true, no config mocking will be done
+        * @param bool               $raw  If true, no config mocking will be done
+        *
+        * @throws InternalServerErrorException
         */
        public function mockApp(vfsStreamDirectory $root, $raw = false)
        {
@@ -108,7 +111,7 @@ trait AppMockTrait
                        ->andReturn($this->configMock);
                $this->app
                        ->shouldReceive('getTemplateEngine')
-                       ->andReturn(new FriendicaSmartyEngine());
+                       ->andReturn(new FriendicaSmartyEngine('frio', []));
                $this->app
                        ->shouldReceive('getCurrentTheme')
                        ->andReturn('Smarty3');