Fix tests

This commit is contained in:
Victor Dubiniuk 2015-09-09 23:29:52 +03:00
parent 8ac3d5e36c
commit 867ed67aa5
1 changed files with 6 additions and 3 deletions

View File

@ -19,12 +19,15 @@
* *
*/ */
use OCA\Files_Trashbin\BackgroundJob\ExpireTrash; namespace OCA\Files_Trashbin\Tests\BackgroundJob\ExpireTrash;
class ExpireTrash_Test extends \PHPUnit_Framework_TestCase { use \OCA\Files_Trashbin\BackgroundJob\ExpireTrash;
class ExpireTrash_Test extends \Test\TestCase {
public function testConstructAndRun() { public function testConstructAndRun() {
$backgroundJob = new OCA\Files_Trashbin\BackgroundJob\ExpireTrash( $backgroundJob = new ExpireTrash(
$this->getMock('OCP\IDBConnection'), $this->getMock('OCP\IDBConnection'),
$this->getMock('OCP\IUserManager'),
$this->getMockBuilder('OCA\Files_Trashbin\Expiration')->disableOriginalConstructor()->getMock() $this->getMockBuilder('OCA\Files_Trashbin\Expiration')->disableOriginalConstructor()->getMock()
); );