Merge pull request #24815 from owncloud/fix-autotest-external-psr4
Fix ext storage test class name in test script
This commit is contained in:
commit
eddc222369
|
@ -29,13 +29,13 @@ namespace OCA\Files_External\Tests\Storage;
|
||||||
use \OCA\Files_External\Lib\Storage\AmazonS3;
|
use \OCA\Files_External\Lib\Storage\AmazonS3;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class AmazonS3Test
|
* Class Amazons3Test
|
||||||
*
|
*
|
||||||
* @group DB
|
* @group DB
|
||||||
*
|
*
|
||||||
* @package OCA\Files_External\Tests\Storage
|
* @package OCA\Files_External\Tests\Storage
|
||||||
*/
|
*/
|
||||||
class AmazonS3Test extends \Test\Files\Storage\Storage {
|
class Amazons3Test extends \Test\Files\Storage\Storage {
|
||||||
|
|
||||||
private $config;
|
private $config;
|
||||||
|
|
|
@ -29,13 +29,13 @@ namespace OCA\Files_External\Tests\Storage;
|
||||||
use \OCA\Files_External\Lib\Storage\FTP;
|
use \OCA\Files_External\Lib\Storage\FTP;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class FTPTest
|
* Class FtpTest
|
||||||
*
|
*
|
||||||
* @group DB
|
* @group DB
|
||||||
*
|
*
|
||||||
* @package OCA\Files_External\Tests\Storage
|
* @package OCA\Files_External\Tests\Storage
|
||||||
*/
|
*/
|
||||||
class FTPTest extends \Test\Files\Storage\Storage {
|
class FtpTest extends \Test\Files\Storage\Storage {
|
||||||
private $config;
|
private $config;
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
|
@ -33,7 +33,7 @@ use \OCA\Files_External\Lib\Storage\OwnCloud;
|
||||||
*
|
*
|
||||||
* @package OCA\Files_External\Tests\Storage
|
* @package OCA\Files_External\Tests\Storage
|
||||||
*/
|
*/
|
||||||
class OwnCloudTest extends \Test\Files\Storage\Storage {
|
class OwncloudTest extends \Test\Files\Storage\Storage {
|
||||||
|
|
||||||
private $config;
|
private $config;
|
||||||
|
|
|
@ -29,13 +29,13 @@ namespace OCA\Files_External\Tests\Storage;
|
||||||
use \OCA\Files_External\Lib\Storage\SFTP;
|
use \OCA\Files_External\Lib\Storage\SFTP;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class SFTPTest
|
* Class SftpTest
|
||||||
*
|
*
|
||||||
* @group DB
|
* @group DB
|
||||||
*
|
*
|
||||||
* @package OCA\Files_External\Tests\Storage
|
* @package OCA\Files_External\Tests\Storage
|
||||||
*/
|
*/
|
||||||
class SFTPTest extends \Test\Files\Storage\Storage {
|
class SftpTest extends \Test\Files\Storage\Storage {
|
||||||
/**
|
/**
|
||||||
* @var SFTP instance
|
* @var SFTP instance
|
||||||
*/
|
*/
|
|
@ -28,13 +28,13 @@ namespace OCA\Files_External\Tests\Storage;
|
||||||
use \OCA\Files_External\Lib\Storage\SMB;
|
use \OCA\Files_External\Lib\Storage\SMB;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class SMBTest
|
* Class SmbTest
|
||||||
*
|
*
|
||||||
* @group DB
|
* @group DB
|
||||||
*
|
*
|
||||||
* @package OCA\Files_External\Tests\Storage
|
* @package OCA\Files_External\Tests\Storage
|
||||||
*/
|
*/
|
||||||
class SMBTest extends \Test\Files\Storage\Storage {
|
class SmbTest extends \Test\Files\Storage\Storage {
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
|
@ -28,13 +28,13 @@ namespace OCA\Files_External\Tests\Storage;
|
||||||
use \OC\Files\Storage\DAV;
|
use \OC\Files\Storage\DAV;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class WebDAVTest
|
* Class WebdavTest
|
||||||
*
|
*
|
||||||
* @group DB
|
* @group DB
|
||||||
*
|
*
|
||||||
* @package OCA\Files_External\Tests\Storage
|
* @package OCA\Files_External\Tests\Storage
|
||||||
*/
|
*/
|
||||||
class WebDAVTest extends \Test\Files\Storage\Storage {
|
class WebdavTest extends \Test\Files\Storage\Storage {
|
||||||
|
|
||||||
protected function setUp() {
|
protected function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
|
@ -178,7 +178,7 @@ EOF
|
||||||
return;
|
return;
|
||||||
fi
|
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
|
FILES_EXTERNAL_BACKEND_ENV_PATH=../apps/files_external/tests/env
|
||||||
|
|
||||||
for startFile in `ls -1 $FILES_EXTERNAL_BACKEND_ENV_PATH | grep start`; do
|
for startFile in `ls -1 $FILES_EXTERNAL_BACKEND_ENV_PATH | grep start`; do
|
||||||
|
@ -198,7 +198,9 @@ EOF
|
||||||
# getting backend to test from filename
|
# getting backend to test from filename
|
||||||
# it's the part between the dots startSomething.TestToRun.sh
|
# it's the part between the dots startSomething.TestToRun.sh
|
||||||
testToRun=`echo $startFile | cut -d '-' -f 2`
|
testToRun=`echo $startFile | cut -d '-' -f 2`
|
||||||
testToRun="${testToRun}test.php"
|
# capitalize first letter
|
||||||
|
testToRun="${testToRun^}"
|
||||||
|
testToRun="${testToRun}Test.php"
|
||||||
|
|
||||||
# run the specific test
|
# run the specific test
|
||||||
if [ -z "$NOCOVERAGE" ]; then
|
if [ -z "$NOCOVERAGE" ]; then
|
||||||
|
|
Loading…
Reference in New Issue