diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2017-03-21 11:27:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-21 11:27:00 +0100 |
commit | 7e958370970368d142cf65cdfe3e9191dcc34766 (patch) | |
tree | c63ac35394aa6d694fb16a03fe480683f7bd7d04 /tests | |
parent | 04f419bc25c52538c10d3c63b00f1f3d30b186fd (diff) | |
parent | 5bfce597a92a3b1f84d12f0886c620d425aaba26 (diff) | |
download | nextcloud-server-7e958370970368d142cf65cdfe3e9191dcc34766.tar.gz nextcloud-server-7e958370970368d142cf65cdfe3e9191dcc34766.zip |
Merge pull request #3955 from nextcloud/downstream-27113
Can we get some faster phpunit execution?
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Repair/RepairCollationTest.php | 13 | ||||
-rw-r--r-- | tests/phpunit-autotest.xml | 1 |
2 files changed, 10 insertions, 4 deletions
diff --git a/tests/lib/Repair/RepairCollationTest.php b/tests/lib/Repair/RepairCollationTest.php index 897f772a794..7ff069d37be 100644 --- a/tests/lib/Repair/RepairCollationTest.php +++ b/tests/lib/Repair/RepairCollationTest.php @@ -8,10 +8,15 @@ namespace Test\Repair; +use Doctrine\DBAL\Connection; +use Doctrine\DBAL\Platforms\MySqlPlatform; +use OC\Repair\Collation; +use OCP\IDBConnection; use OCP\ILogger; use OCP\Migration\IOutput; +use Test\TestCase; -class TestCollationRepair extends \OC\Repair\Collation { +class TestCollationRepair extends Collation { /** * @param \Doctrine\DBAL\Connection $connection * @return string[] @@ -28,7 +33,7 @@ class TestCollationRepair extends \OC\Repair\Collation { * * @see \OC\Repair\RepairMimeTypes */ -class RepairCollationTest extends \Test\TestCase { +class RepairCollationTest extends TestCase { /** * @var TestCollationRepair @@ -36,7 +41,7 @@ class RepairCollationTest extends \Test\TestCase { private $repair; /** - * @var \Doctrine\DBAL\Connection + * @var Connection|IDBConnection */ private $connection; @@ -59,7 +64,7 @@ class RepairCollationTest extends \Test\TestCase { $this->connection = \OC::$server->getDatabaseConnection(); $this->logger = $this->createMock(ILogger::class); $this->config = \OC::$server->getConfig(); - if (!$this->connection->getDatabasePlatform() instanceof \Doctrine\DBAL\Platforms\MySqlPlatform) { + if (!$this->connection->getDatabasePlatform() instanceof MySqlPlatform) { $this->markTestSkipped("Test only relevant on MySql"); } diff --git a/tests/phpunit-autotest.xml b/tests/phpunit-autotest.xml index ba16bbdbaac..9a9c9c957e3 100644 --- a/tests/phpunit-autotest.xml +++ b/tests/phpunit-autotest.xml @@ -2,6 +2,7 @@ <phpunit bootstrap="bootstrap.php" strict="true" verbose="true" + backupGlobals="false" timeoutForSmallTests="900" timeoutForMediumTests="900" timeoutForLargeTests="900" |