File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
provisioning_api/tests/Controller
settings/tests/Controller Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,17 @@ protected function setUp(): void {
4545 );
4646 }
4747
48+ protected function tearDown (): void {
49+ $ this ->userSession ->setUser (null );
50+ }
51+
4852 public function testGetAppInfo () {
4953 $ result = $ this ->api ->getAppInfo ('provisioning_api ' );
5054 $ expected = $ this ->appManager ->getAppInfo ('provisioning_api ' );
5155 $ this ->assertEquals ($ expected , $ result ->getData ());
5256 }
5357
54-
58+
5559 public function testGetAppInfoOnBadAppID () {
5660 $ this ->expectException (\OCP \AppFramework \OCS \OCSException::class);
5761 $ this ->expectExceptionCode (998 );
Original file line number Diff line number Diff line change @@ -81,6 +81,8 @@ protected function setUp(): void {
8181
8282 protected function tearDown (): void {
8383 \OC ::$ server ->getUserManager ()->get ($ this ->adminUid )->delete ();
84+ \OC_User::setUserId (null );
85+ \OC ::$ server ->getUserSession ()->setUser (null );
8486
8587 parent ::tearDown ();
8688 }
You can’t perform that action at this time.
0 commit comments