]> git.mxchange.org Git - friendica.git/commitdiff
Add expected mocked calls to BBCodeTest
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Mar 2021 18:06:27 +0000 (14:06 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 14 Mar 2021 18:34:52 +0000 (14:34 -0400)
tests/src/Content/Text/BBCodeTest.php

index 2eb5d1903d1aaccf9579392737c095c6826dbc23..b34ddd3559b2cf14b536a59c6432a476b9c45c6d 100644 (file)
@@ -63,6 +63,9 @@ class BBCodeTest extends MockedTest
                $this->configMock->shouldReceive('get')
                        ->with('system', 'big_emojis')
                        ->andReturn(false);
+               $this->configMock->shouldReceive('get')
+                       ->with('system', 'allowed_oembed')
+                       ->andReturn('');
 
                $l10nMock = Mockery::mock(L10n::class);
                $l10nMock->shouldReceive('t')->withAnyArgs()->andReturnUsing(function ($args) { return $args; });
@@ -75,6 +78,8 @@ class BBCodeTest extends MockedTest
                $this->dice->shouldReceive('create')
                           ->with(BaseURL::class)
                           ->andReturn($baseUrlMock);
+               $baseUrlMock->shouldReceive('getHostname')->withNoArgs()->andReturn('friendica.local');
+               $baseUrlMock->shouldReceive('getUrlPath')->withNoArgs()->andReturn('');
 
                $config = \HTMLPurifier_HTML5Config::createDefault();
                $config->set('HTML.Doctype', 'HTML5');