Unverified Commit 7652e667 authored by Thomas Müller's avatar Thomas Müller
Browse files

Skeleton files are not copied over -> only 3 cache entries are remaining

parent 12b00a23
...@@ -23,8 +23,10 @@ ...@@ -23,8 +23,10 @@
namespace OCA\Files\Tests\Command; namespace OCA\Files\Tests\Command;
use OC\Files\View;
use OCA\Files\Command\DeleteOrphanedFiles; use OCA\Files\Command\DeleteOrphanedFiles;
use OCP\Files\StorageNotAvailableException; use OCP\Files\StorageNotAvailableException;
use Test\TestCase;
/** /**
* Class DeleteOrphanedFilesTest * Class DeleteOrphanedFilesTest
...@@ -33,7 +35,7 @@ use OCP\Files\StorageNotAvailableException; ...@@ -33,7 +35,7 @@ use OCP\Files\StorageNotAvailableException;
* *
* @package OCA\Files\Tests\Command * @package OCA\Files\Tests\Command
*/ */
class DeleteOrphanedFilesTest extends \Test\TestCase { class DeleteOrphanedFilesTest extends TestCase {
/** /**
* @var DeleteOrphanedFiles * @var DeleteOrphanedFiles
...@@ -93,7 +95,7 @@ class DeleteOrphanedFilesTest extends \Test\TestCase { ...@@ -93,7 +95,7 @@ class DeleteOrphanedFilesTest extends \Test\TestCase {
$this->loginAsUser($this->user1); $this->loginAsUser($this->user1);
$view = new \OC\Files\View('/' . $this->user1 . '/'); $view = new View('/' . $this->user1 . '/');
$view->mkdir('files/test'); $view->mkdir('files/test');
$fileInfo = $view->getFileInfo('files/test'); $fileInfo = $view->getFileInfo('files/test');
...@@ -114,7 +116,7 @@ class DeleteOrphanedFilesTest extends \Test\TestCase { ...@@ -114,7 +116,7 @@ class DeleteOrphanedFilesTest extends \Test\TestCase {
$output $output
->expects($this->once()) ->expects($this->once())
->method('writeln') ->method('writeln')
->with('4 orphaned file cache entries deleted'); ->with('3 orphaned file cache entries deleted');
$this->command->execute($input, $output); $this->command->execute($input, $output);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment