mirror of
https://github.com/friendica/friendica
synced 2025-05-15 01:44:14 +02:00
Moved Mocking usage
Adding more documentation
This commit is contained in:
parent
551efde226
commit
70e240691e
6 changed files with 65 additions and 9 deletions
|
@ -3,6 +3,7 @@
|
|||
namespace Friendica\Test\src\Core\Console;
|
||||
|
||||
use Friendica\Core\Console\AutomaticInstallation;
|
||||
use Friendica\Test\Util\DBAMockTrait;
|
||||
use Friendica\Test\Util\DBStructureMockTrait;
|
||||
use org\bovigo\vfs\vfsStream;
|
||||
|
||||
|
@ -13,6 +14,7 @@ use org\bovigo\vfs\vfsStream;
|
|||
*/
|
||||
class AutomaticInstallationConsoleTest extends ConsoleTest
|
||||
{
|
||||
use DBAMockTrait;
|
||||
use DBStructureMockTrait;
|
||||
|
||||
private $db_host;
|
||||
|
@ -251,9 +253,9 @@ CONF;
|
|||
|
||||
$console = new AutomaticInstallation();
|
||||
|
||||
$returnStr = $this->dumpExecute($console);
|
||||
$txt = $this->dumpExecute($console);
|
||||
|
||||
$this->assertFinished($returnStr, true);
|
||||
$this->assertFinished($txt, true);
|
||||
|
||||
$this->assertTrue($this->root->hasChild('config' . DIRECTORY_SEPARATOR . 'local.ini.php'));
|
||||
|
||||
|
@ -290,9 +292,9 @@ CONF;
|
|||
|
||||
$console->setOption('urlpath', '/friendica');
|
||||
|
||||
$returnStr = $this->dumpExecute($console);
|
||||
$txt = $this->dumpExecute($console);
|
||||
|
||||
$this->assertFinished($returnStr, true);
|
||||
$this->assertFinished($txt, true);
|
||||
|
||||
$this->assertTrue($this->root->hasChild('config' . DIRECTORY_SEPARATOR . 'local.ini.php'));
|
||||
|
||||
|
@ -311,9 +313,9 @@ CONF;
|
|||
|
||||
$console = new AutomaticInstallation();
|
||||
|
||||
$returnStr = $this->dumpExecute($console);
|
||||
$txt = $this->dumpExecute($console);
|
||||
|
||||
$this->assertStuckDB($returnStr);
|
||||
$this->assertStuckDB($txt);
|
||||
}
|
||||
|
||||
public function testGetHelp()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue