diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-09-09 23:29:52 +0300 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2015-09-16 17:37:21 +0300 |
commit | 867ed67aa501f11f363a44a40c3b046bbaf08917 (patch) | |
tree | 3919aaf35c3bd079e38598871e059ed947ed34f5 /apps/files_trashbin | |
parent | 8ac3d5e36c7d628f1ba4d27c68d54786eed972b2 (diff) | |
download | nextcloud-server-867ed67aa501f11f363a44a40c3b046bbaf08917.tar.gz nextcloud-server-867ed67aa501f11f363a44a40c3b046bbaf08917.zip |
Fix tests
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/tests/backgroundjob/expiretrash.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/files_trashbin/tests/backgroundjob/expiretrash.php b/apps/files_trashbin/tests/backgroundjob/expiretrash.php index f9f939c40ea..f39714f8a30 100644 --- a/apps/files_trashbin/tests/backgroundjob/expiretrash.php +++ b/apps/files_trashbin/tests/backgroundjob/expiretrash.php @@ -19,12 +19,15 @@ * */ -use OCA\Files_Trashbin\BackgroundJob\ExpireTrash; +namespace OCA\Files_Trashbin\Tests\BackgroundJob\ExpireTrash; + +use \OCA\Files_Trashbin\BackgroundJob\ExpireTrash; -class ExpireTrash_Test extends \PHPUnit_Framework_TestCase { +class ExpireTrash_Test extends \Test\TestCase { public function testConstructAndRun() { - $backgroundJob = new OCA\Files_Trashbin\BackgroundJob\ExpireTrash( + $backgroundJob = new ExpireTrash( $this->getMock('OCP\IDBConnection'), + $this->getMock('OCP\IUserManager'), $this->getMockBuilder('OCA\Files_Trashbin\Expiration')->disableOriginalConstructor()->getMock() ); |