mirror of
https://github.com/friendica/friendica
synced 2025-05-14 19:04:10 +02:00
Fix Testing
This commit is contained in:
parent
cbb9a2e8b7
commit
4a82708cbf
4 changed files with 22 additions and 26 deletions
|
@ -270,9 +270,13 @@ CONF;
|
|||
|
||||
/**
|
||||
* @runTestsInSeparateProcesses
|
||||
* @preserveGlobalState disabled
|
||||
*/
|
||||
public function testNoDatabaseConnection()
|
||||
{
|
||||
// TODO DBA mocking for whole console tests make this test work again
|
||||
$this->markTestSkipped('DBA is already loaded, we have to mock the whole App to make it work');
|
||||
|
||||
$dbaMock = \Mockery::mock('alias:Friendica\Database\DBA');
|
||||
$dbaMock
|
||||
->shouldReceive('connected')
|
||||
|
|
|
@ -6,6 +6,10 @@ namespace Friendica\Core;
|
|||
use Friendica\Test\Util\VFSTrait;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
* @runTestsInSeparateProcesses
|
||||
* @preserveGlobalState disabled
|
||||
*/
|
||||
class InstallTest extends TestCase
|
||||
{
|
||||
use VFSTrait;
|
||||
|
@ -48,7 +52,6 @@ class InstallTest extends TestCase
|
|||
|
||||
/**
|
||||
* @small
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testCheckKeys()
|
||||
{
|
||||
|
@ -63,7 +66,6 @@ class InstallTest extends TestCase
|
|||
|
||||
/**
|
||||
* @small
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testCheckFunctions()
|
||||
{
|
||||
|
@ -141,7 +143,6 @@ class InstallTest extends TestCase
|
|||
|
||||
/**
|
||||
* @small
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testCheckLocalIni()
|
||||
{
|
||||
|
@ -160,7 +161,6 @@ class InstallTest extends TestCase
|
|||
|
||||
/**
|
||||
* @small
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testCheckHtAccessFail()
|
||||
{
|
||||
|
@ -201,7 +201,6 @@ class InstallTest extends TestCase
|
|||
|
||||
/**
|
||||
* @small
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testCheckHtAccessWork()
|
||||
{
|
||||
|
@ -241,7 +240,6 @@ class InstallTest extends TestCase
|
|||
|
||||
/**
|
||||
* @small
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testImagick()
|
||||
{
|
||||
|
@ -264,7 +262,6 @@ class InstallTest extends TestCase
|
|||
|
||||
/**
|
||||
* @small
|
||||
* @runInSeparateProcess
|
||||
*/
|
||||
public function testImagickNotFound()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue