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

remotes/origin/throw-loginexception-failed-login
Joas Schilling 10 years ago
parent 7ca5b35379
commit b1458d590d
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
  1. 3
      tests/lib/files/cache/cache.php
  2. 2
      tests/lib/files/node/IntegrationTest.php
  3. 14
      tests/lib/files/objectstore/SwiftTest.php
  4. 2
      tests/lib/files/objectstore/noopscanner.php
  5. 2
      tests/lib/files/pathverificationtest.php
  6. 1
      tests/lib/files/storage/wrapper/availability.php
  7. 0
      tests/lib/files/type/DetectionTest.php
  8. 2
      tests/lib/files/type/loadertest.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);

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

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

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

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

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

@ -19,7 +19,7 @@
*
*/
namespace OC\Files\Type;
namespace Test\Files\Type;
use \OC\Files\Type\Loader;
use \OCP\IDBConnection;

Loading…
Cancel
Save