]> git.mxchange.org Git - friendica.git/commitdiff
Tests
authorMichael <heluecht@pirati.ca>
Sun, 25 Jul 2021 20:45:09 +0000 (20:45 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 25 Jul 2021 20:45:09 +0000 (20:45 +0000)
tests/Util/AppMockTrait.php
tests/src/Content/SmiliesTest.php
tests/src/Content/Text/BBCodeTest.php

index 47293ced6f3bc52f32f921e1bfd8967c2b627291..c2af4ad459c6dd3616f49d471cdb0ee4fb667336 100644 (file)
@@ -115,7 +115,13 @@ trait AppMockTrait
                $this->app
                        ->shouldReceive('getCurrentTheme')
                        ->andReturn('Smarty3');
-
+               $this->app->shouldReceive('setThemeInfoValue')
+                       ->with('videowidth')
+                       ->andReturn(425);
+               $this->app->shouldReceive('setThemeInfoValue')
+                       ->with('videoheight')
+                       ->andReturn(350);
+       
                DI::init($this->dice);
 
                if ($raw) {
index e2d35183f34dab7421e6971f1af900530501bc2f..2e97b4d400101380609fee54b89b6c4b2652ab06 100644 (file)
@@ -24,8 +24,6 @@ class SmiliesTest extends MockedTest
                parent::setUp();
                $this->setUpVfsDir();
                $this->mockApp($this->root);
-               $this->app->setThemeInfoValue('videowidth', 425);
-               $this->app->setThemeInfoValue('videoheight', 350);
                $this->configMock->shouldReceive('get')
                        ->with('system', 'no_smilies')
                        ->andReturn(false);
index 460916b6fc4349356ffe67bd6d14ecdc12f70318..2fcf5a5fa33882ad08292bfeeaba7bb95d928d4e 100644 (file)
@@ -40,8 +40,6 @@ class BBCodeTest extends MockedTest
                parent::setUp();
                $this->setUpVfsDir();
                $this->mockApp($this->root);
-               $this->app->setThemeInfoValue('videowidth', 425);
-               $this->app->setThemeInfoValue('videoheight', 350);
                $this->configMock->shouldReceive('get')
                        ->with('system', 'remove_multiplicated_lines')
                        ->andReturn(false);