소스 검색

Fix namespaces and class names in tests/lib/files/

tags/v9.1.0beta1
Joas Schilling 8 년 전
부모
커밋
b1458d590d
No account linked to committer's email address

+ 1
- 2
tests/lib/files/cache/cache.php 파일 보기

@@ -8,7 +8,6 @@

namespace Test\Files\Cache;

use PHPUnit_Framework_MockObject_MockObject;

class LongId extends \OC\Files\Storage\Temporary {
public function getId() {
@@ -491,7 +490,7 @@ class Cache extends \Test\TestCase {
$folderWith0308 = "\x53\x63\x68\x6f\xcc\x88\x6e";

/**
* @var \OC\Files\Cache\Cache | PHPUnit_Framework_MockObject_MockObject $cacheMock
* @var \OC\Files\Cache\Cache | \PHPUnit_Framework_MockObject_MockObject $cacheMock
*/
$cacheMock = $this->getMock('\OC\Files\Cache\Cache', array('normalize'), array($this->storage), '', true);


tests/lib/files/node/integration.php → tests/lib/files/node/IntegrationTest.php 파일 보기

@@ -20,7 +20,7 @@ use OC\User\User;
*
* @package Test\Files\Node
*/
class IntegrationTests extends \Test\TestCase {
class IntegrationTest extends \Test\TestCase {
/**
* @var \OC\Files\Node\Root $root
*/

tests/lib/files/objectstore/swift.php → tests/lib/files/objectstore/SwiftTest.php 파일 보기

@@ -18,22 +18,22 @@
*
*/

namespace OCA\ObjectStore\Tests\Unit;
namespace Test\Files\Cache\ObjectStore;

use OC\Files\ObjectStore\ObjectStoreStorage;
use OC\Files\ObjectStore\Swift as ObjectStoreToTest;
use OC\Files\ObjectStore\Swift;

/**
* Class Swift
* Class SwiftTest
*
* @group DB
*
* @package OCA\ObjectStore\Tests\Unit
* @package Test\Files\Cache\ObjectStore
*/
class Swift extends \Test\Files\Storage\Storage {
class SwiftTest extends \Test\Files\Storage\Storage {

/**
* @var ObjectStoreToTest
* @var Swift
*/
private $objectStorage;

@@ -63,7 +63,7 @@ class Swift extends \Test\Files\Storage\Storage {
\OC_User::setUserId('test');

$config = \OC::$server->getConfig()->getSystemValue('objectstore');
$this->objectStorage = new ObjectStoreToTest($config['arguments']);
$this->objectStorage = new Swift($config['arguments']);
$config['objectstore'] = $this->objectStorage;
$this->instance = new ObjectStoreStorage($config);
}

+ 1
- 1
tests/lib/files/objectstore/noopscanner.php 파일 보기

@@ -9,7 +9,7 @@
* later.
* See the COPYING-README file.
*/
namespace Test\Files\Cache;
namespace Test\Files\Cache\ObjectStore;

class NoopScanner extends \Test\TestCase {
/** @var \OC\Files\Storage\Storage $storage */

+ 1
- 1
tests/lib/files/pathverificationtest.php 파일 보기

@@ -17,7 +17,7 @@ use OC\Files\View;
*
* @package Test\Files
*/
class PathVerification extends \Test\TestCase {
class PathVerificationTest extends \Test\TestCase {

/**
* @var \OC\Files\View

+ 1
- 0
tests/lib/files/storage/wrapper/availability.php 파일 보기

@@ -18,6 +18,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>
*
*/

namespace Test\Files\Storage\Wrapper;

class Availability extends \Test\TestCase {

tests/lib/files/type/detection.php → tests/lib/files/type/DetectionTest.php 파일 보기


+ 1
- 1
tests/lib/files/type/loadertest.php 파일 보기

@@ -19,7 +19,7 @@
*
*/

namespace OC\Files\Type;
namespace Test\Files\Type;

use \OC\Files\Type\Loader;
use \OCP\IDBConnection;

Loading…
취소
저장