mirror of
https://github.com/friendica/friendica
synced 2024-11-18 04:23:41 +00:00
Tests
This commit is contained in:
parent
1539d76fda
commit
2b41b322bc
3 changed files with 7 additions and 5 deletions
|
@ -115,6 +115,12 @@ trait AppMockTrait
|
||||||
$this->app
|
$this->app
|
||||||
->shouldReceive('getCurrentTheme')
|
->shouldReceive('getCurrentTheme')
|
||||||
->andReturn('Smarty3');
|
->andReturn('Smarty3');
|
||||||
|
$this->app->shouldReceive('setThemeInfoValue')
|
||||||
|
->with('videowidth')
|
||||||
|
->andReturn(425);
|
||||||
|
$this->app->shouldReceive('setThemeInfoValue')
|
||||||
|
->with('videoheight')
|
||||||
|
->andReturn(350);
|
||||||
|
|
||||||
DI::init($this->dice);
|
DI::init($this->dice);
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,6 @@ class SmiliesTest extends MockedTest
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->setUpVfsDir();
|
$this->setUpVfsDir();
|
||||||
$this->mockApp($this->root);
|
$this->mockApp($this->root);
|
||||||
$this->app->setThemeInfoValue('videowidth', 425);
|
|
||||||
$this->app->setThemeInfoValue('videoheight', 350);
|
|
||||||
$this->configMock->shouldReceive('get')
|
$this->configMock->shouldReceive('get')
|
||||||
->with('system', 'no_smilies')
|
->with('system', 'no_smilies')
|
||||||
->andReturn(false);
|
->andReturn(false);
|
||||||
|
|
|
@ -40,8 +40,6 @@ class BBCodeTest extends MockedTest
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
$this->setUpVfsDir();
|
$this->setUpVfsDir();
|
||||||
$this->mockApp($this->root);
|
$this->mockApp($this->root);
|
||||||
$this->app->setThemeInfoValue('videowidth', 425);
|
|
||||||
$this->app->setThemeInfoValue('videoheight', 350);
|
|
||||||
$this->configMock->shouldReceive('get')
|
$this->configMock->shouldReceive('get')
|
||||||
->with('system', 'remove_multiplicated_lines')
|
->with('system', 'remove_multiplicated_lines')
|
||||||
->andReturn(false);
|
->andReturn(false);
|
||||||
|
|
Loading…
Reference in a new issue