diff options
Diffstat (limited to 'apps/files_sharing/tests/controller/sharecontroller.php')
-rw-r--r-- | apps/files_sharing/tests/controller/sharecontroller.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/tests/controller/sharecontroller.php b/apps/files_sharing/tests/controller/sharecontroller.php index 6e61dbb2488..11e0e236e7b 100644 --- a/apps/files_sharing/tests/controller/sharecontroller.php +++ b/apps/files_sharing/tests/controller/sharecontroller.php @@ -25,7 +25,7 @@ use OC\URLGenerator; /** * @package OCA\Files_Sharing\Controllers */ -class ShareControllerTest extends \PHPUnit_Framework_TestCase { +class ShareControllerTest extends \Test\TestCase { /** @var IAppContainer */ private $container; @@ -41,6 +41,8 @@ class ShareControllerTest extends \PHPUnit_Framework_TestCase { private $urlGenerator; protected function setUp() { + parent::setUp(); + $app = new Application(); $this->container = $app->getContainer(); $this->container['Config'] = $this->getMockBuilder('\OCP\IConfig') @@ -92,6 +94,8 @@ class ShareControllerTest extends \PHPUnit_Framework_TestCase { // Set old user \OC_User::setUserId($this->oldUser); \OC_Util::setupFS($this->oldUser); + + parent::tearDown(); } public function testShowAuthenticate() { |