summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-05-25 15:09:33 +0200
committerVincent Petry <pvince81@owncloud.com>2016-05-25 15:09:33 +0200
commiteddc222369c254fa598a4ab1d7f4a9fecc3fae3f (patch)
tree453c9e7c01e16516f4a05f17e9141b2fb2ce2548
parentc5ade48c042fc8d5a2a5e3a3c62854e78711eee1 (diff)
parent9382cd1d8e135d77f316bbc8ab3fbea76e84708a (diff)
downloadnextcloud-server-eddc222369c254fa598a4ab1d7f4a9fecc3fae3f.tar.gz
nextcloud-server-eddc222369c254fa598a4ab1d7f4a9fecc3fae3f.zip
Merge pull request #24815 from owncloud/fix-autotest-external-psr4
Fix ext storage test class name in test script
-rw-r--r--apps/files_external/tests/Storage/Amazons3Test.php (renamed from apps/files_external/tests/Storage/AmazonS3Test.php)4
-rw-r--r--apps/files_external/tests/Storage/FtpTest.php (renamed from apps/files_external/tests/Storage/FTPTest.php)4
-rw-r--r--apps/files_external/tests/Storage/OwncloudTest.php (renamed from apps/files_external/tests/Storage/OwnCloudTest.php)2
-rw-r--r--apps/files_external/tests/Storage/SftpTest.php (renamed from apps/files_external/tests/Storage/SFTPTest.php)4
-rw-r--r--apps/files_external/tests/Storage/SmbTest.php (renamed from apps/files_external/tests/Storage/SMBTest.php)4
-rw-r--r--apps/files_external/tests/Storage/WebdavTest.php (renamed from apps/files_external/tests/Storage/WebDAVTest.php)4
-rwxr-xr-xautotest-external.sh6
7 files changed, 15 insertions, 13 deletions
diff --git a/apps/files_external/tests/Storage/AmazonS3Test.php b/apps/files_external/tests/Storage/Amazons3Test.php
index eb0e410764c..2776f929a4e 100644
--- a/apps/files_external/tests/Storage/AmazonS3Test.php
+++ b/apps/files_external/tests/Storage/Amazons3Test.php
@@ -29,13 +29,13 @@ namespace OCA\Files_External\Tests\Storage;
use \OCA\Files_External\Lib\Storage\AmazonS3;
/**
- * Class AmazonS3Test
+ * Class Amazons3Test
*
* @group DB
*
* @package OCA\Files_External\Tests\Storage
*/
-class AmazonS3Test extends \Test\Files\Storage\Storage {
+class Amazons3Test extends \Test\Files\Storage\Storage {
private $config;
diff --git a/apps/files_external/tests/Storage/FTPTest.php b/apps/files_external/tests/Storage/FtpTest.php
index 9af9ccff012..941457fc662 100644
--- a/apps/files_external/tests/Storage/FTPTest.php
+++ b/apps/files_external/tests/Storage/FtpTest.php
@@ -29,13 +29,13 @@ namespace OCA\Files_External\Tests\Storage;
use \OCA\Files_External\Lib\Storage\FTP;
/**
- * Class FTPTest
+ * Class FtpTest
*
* @group DB
*
* @package OCA\Files_External\Tests\Storage
*/
-class FTPTest extends \Test\Files\Storage\Storage {
+class FtpTest extends \Test\Files\Storage\Storage {
private $config;
protected function setUp() {
diff --git a/apps/files_external/tests/Storage/OwnCloudTest.php b/apps/files_external/tests/Storage/OwncloudTest.php
index cbc25e46fa0..e48c1ea7a51 100644
--- a/apps/files_external/tests/Storage/OwnCloudTest.php
+++ b/apps/files_external/tests/Storage/OwncloudTest.php
@@ -33,7 +33,7 @@ use \OCA\Files_External\Lib\Storage\OwnCloud;
*
* @package OCA\Files_External\Tests\Storage
*/
-class OwnCloudTest extends \Test\Files\Storage\Storage {
+class OwncloudTest extends \Test\Files\Storage\Storage {
private $config;
diff --git a/apps/files_external/tests/Storage/SFTPTest.php b/apps/files_external/tests/Storage/SftpTest.php
index 329e93819fc..1d55366840a 100644
--- a/apps/files_external/tests/Storage/SFTPTest.php
+++ b/apps/files_external/tests/Storage/SftpTest.php
@@ -29,13 +29,13 @@ namespace OCA\Files_External\Tests\Storage;
use \OCA\Files_External\Lib\Storage\SFTP;
/**
- * Class SFTPTest
+ * Class SftpTest
*
* @group DB
*
* @package OCA\Files_External\Tests\Storage
*/
-class SFTPTest extends \Test\Files\Storage\Storage {
+class SftpTest extends \Test\Files\Storage\Storage {
/**
* @var SFTP instance
*/
diff --git a/apps/files_external/tests/Storage/SMBTest.php b/apps/files_external/tests/Storage/SmbTest.php
index fc2795702c6..3d217a5575a 100644
--- a/apps/files_external/tests/Storage/SMBTest.php
+++ b/apps/files_external/tests/Storage/SmbTest.php
@@ -28,13 +28,13 @@ namespace OCA\Files_External\Tests\Storage;
use \OCA\Files_External\Lib\Storage\SMB;
/**
- * Class SMBTest
+ * Class SmbTest
*
* @group DB
*
* @package OCA\Files_External\Tests\Storage
*/
-class SMBTest extends \Test\Files\Storage\Storage {
+class SmbTest extends \Test\Files\Storage\Storage {
protected function setUp() {
parent::setUp();
diff --git a/apps/files_external/tests/Storage/WebDAVTest.php b/apps/files_external/tests/Storage/WebdavTest.php
index f8c5b19e04f..fbb4e8ae5f6 100644
--- a/apps/files_external/tests/Storage/WebDAVTest.php
+++ b/apps/files_external/tests/Storage/WebdavTest.php
@@ -28,13 +28,13 @@ namespace OCA\Files_External\Tests\Storage;
use \OC\Files\Storage\DAV;
/**
- * Class WebDAVTest
+ * Class WebdavTest
*
* @group DB
*
* @package OCA\Files_External\Tests\Storage
*/
-class WebDAVTest extends \Test\Files\Storage\Storage {
+class WebdavTest extends \Test\Files\Storage\Storage {
protected function setUp() {
parent::setUp();
diff --git a/autotest-external.sh b/autotest-external.sh
index 9705980aa2b..9d9d42cee35 100755
--- a/autotest-external.sh
+++ b/autotest-external.sh
@@ -178,7 +178,7 @@ EOF
return;
fi
- FILES_EXTERNAL_BACKEND_PATH=../apps/files_external/tests/storage
+ FILES_EXTERNAL_BACKEND_PATH=../apps/files_external/tests/Storage
FILES_EXTERNAL_BACKEND_ENV_PATH=../apps/files_external/tests/env
for startFile in `ls -1 $FILES_EXTERNAL_BACKEND_ENV_PATH | grep start`; do
@@ -198,7 +198,9 @@ EOF
# getting backend to test from filename
# it's the part between the dots startSomething.TestToRun.sh
testToRun=`echo $startFile | cut -d '-' -f 2`
- testToRun="${testToRun}test.php"
+ # capitalize first letter
+ testToRun="${testToRun^}"
+ testToRun="${testToRun}Test.php"
# run the specific test
if [ -z "$NOCOVERAGE" ]; then