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

This commit is contained in:
Joas Schilling 2016-05-19 08:41:01 +02:00
parent 7ca5b35379
commit b1458d590d
No known key found for this signature in database
GPG Key ID: 70A0B324C41C0946
8 changed files with 13 additions and 13 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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