Merge pull request #24815 from owncloud/fix-autotest-external-psr4

Fix ext storage test class name in test script
This commit is contained in:
Vincent Petry 2016-05-25 15:09:33 +02:00
commit eddc222369
7 changed files with 15 additions and 13 deletions

View File

@ -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;

View File

@ -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() {

View File

@ -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;

View File

@ -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
*/

View File

@ -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();

View File

@ -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();

View File

@ -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