mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 17:14:26 +02:00
Bugfixing AutomaticInstallation test
This commit is contained in:
parent
bc73d4bd2b
commit
90e88d6c35
9 changed files with 37 additions and 25 deletions
|
@ -69,7 +69,8 @@ abstract class CacheTest extends MockedTest
|
|||
protected function setUp()
|
||||
{
|
||||
$this->setUpVfsDir();
|
||||
$this->mockApp($this->root);
|
||||
$configMock = \Mockery::mock('Friendica\Core\Config\ConfigCache');
|
||||
$this->mockApp($this->root, $configMock);
|
||||
$this->app
|
||||
->shouldReceive('getHostname')
|
||||
->andReturn('friendica.local');
|
||||
|
|
|
@ -181,7 +181,7 @@ FIN;
|
|||
$this->mockConnect(true, 1);
|
||||
$this->mockConnected(true, 1);
|
||||
$this->mockExistsTable('user', false, 1);
|
||||
$this->mockUpdate([false, true, true], null, 1);
|
||||
$this->mockUpdate([$this->root->url(), false, true, true], null, 1);
|
||||
|
||||
$config = <<<CONF
|
||||
<?php
|
||||
|
@ -241,7 +241,7 @@ CONF;
|
|||
$this->mockConnect(true, 1);
|
||||
$this->mockConnected(true, 1);
|
||||
$this->mockExistsTable('user', false, 1);
|
||||
$this->mockUpdate([false, true, true], null, 1);
|
||||
$this->mockUpdate([$this->root->url(), false, true, true], null, 1);
|
||||
|
||||
$this->mockGetMarkupTemplate('local.config.tpl', 'testTemplate', 1);
|
||||
$this->mockReplaceMacros('testTemplate', $this->createArgumentsForMacro(true), '', 1);
|
||||
|
@ -267,7 +267,7 @@ CONF;
|
|||
$this->mockConnect(true, 1);
|
||||
$this->mockConnected(true, 1);
|
||||
$this->mockExistsTable('user', false, 1);
|
||||
$this->mockUpdate([false, true, true], null, 1);
|
||||
$this->mockUpdate([$this->root->url(), false, true, true], null, 1);
|
||||
|
||||
$this->mockGetMarkupTemplate('local.config.tpl', 'testTemplate', 1);
|
||||
$this->mockReplaceMacros('testTemplate', $this->createArgumentsForMacro(false), '', 1);
|
||||
|
@ -292,7 +292,7 @@ CONF;
|
|||
$this->mockConnect(true, 1);
|
||||
$this->mockConnected(true, 1);
|
||||
$this->mockExistsTable('user', false, 1);
|
||||
$this->mockUpdate([false, true, true], null, 1);
|
||||
$this->mockUpdate([$this->root->url(), false, true, true], null, 1);
|
||||
|
||||
$this->mockGetMarkupTemplate('local.config.tpl', 'testTemplate', 1);
|
||||
$this->mockReplaceMacros('testTemplate', $this->createArgumentsForMacro(true), '', 1);
|
||||
|
|
|
@ -29,7 +29,8 @@ abstract class ConsoleTest extends MockedTest
|
|||
Intercept::setUp();
|
||||
|
||||
$this->setUpVfsDir();
|
||||
$this->mockApp($this->root);
|
||||
$configMock = \Mockery::mock('Friendica\Core\Config\ConfigCache');
|
||||
$this->mockApp($this->root, $configMock);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -31,7 +31,8 @@ abstract class LockTest extends MockedTest
|
|||
|
||||
// Reusable App object
|
||||
$this->setUpVfsDir();
|
||||
$this->mockApp($this->root);
|
||||
$configMock = \Mockery::mock('Friendica\Core\Config\ConfigCache');
|
||||
$this->mockApp($this->root, $configMock);
|
||||
$this->app
|
||||
->shouldReceive('getHostname')
|
||||
->andReturn('friendica.local');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue