diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-13 15:40:16 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2015-10-13 15:40:16 +0200 |
commit | 9444e07e800cbb2d730547198c27f91cf997f70a (patch) | |
tree | 6728ecf27a3976f04151198d885d67809041037c | |
parent | f69161ae87f522edf84bb68ce7ab7e054d3af288 (diff) | |
parent | d78b4d0e72d9738e1d4e7a1baf2f9681a0ae3b91 (diff) | |
download | nextcloud-server-9444e07e800cbb2d730547198c27f91cf997f70a.tar.gz nextcloud-server-9444e07e800cbb2d730547198c27f91cf997f70a.zip |
Merge pull request #19732 from owncloud/make-sure-sharing-extends-the-testcase
Make sure all sharing tests extend the testcase
-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() { |