summaryrefslogtreecommitdiffstats
path: root/apps/twofactor_backupcodes
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-09-14 13:38:18 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-09-14 13:38:18 +0200
commit50ab20c22c68e9efe0d6748d9ae2443c964b4727 (patch)
tree4653761ba3adce7744e5ab82f7476c1ca20da94d /apps/twofactor_backupcodes
parent89d3b2cdd3c43386dea4f985e890ad332d8e6249 (diff)
downloadnextcloud-server-50ab20c22c68e9efe0d6748d9ae2443c964b4727.tar.gz
nextcloud-server-50ab20c22c68e9efe0d6748d9ae2443c964b4727.zip
Remove leftover unit test
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/twofactor_backupcodes')
-rw-r--r--apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php14
1 files changed, 0 insertions, 14 deletions
diff --git a/apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php b/apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php
index 8427c10e839..4c4fde1e0b0 100644
--- a/apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php
+++ b/apps/twofactor_backupcodes/tests/Unit/Controller/SettingsControllerTest.php
@@ -56,20 +56,6 @@ class SettingsControllerTest extends TestCase {
$this->controller = new SettingsController('twofactor_backupcodes', $this->request, $this->storage, $this->userSession);
}
- public function testState() {
- $user = $this->getMockBuilder(IUser::class)->getMock();
-
- $this->userSession->expects($this->once())
- ->method('getUser')
- ->will($this->returnValue($user));
- $this->storage->expects($this->once())
- ->method('getBackupCodesState')
- ->with($user)
- ->will($this->returnValue('state'));
-
- $this->assertEquals('state', $this->controller->state());
- }
-
public function testCreateCodes() {
$user = $this->getMockBuilder(IUser::class)->getMock();