Skip to content
Snippets Groups Projects
Unverified Commit 7987df34 authored by Roeland Jago Douma's avatar Roeland Jago Douma Committed by GitHub
Browse files

Merge pull request #17141 from nextcloud/fix/leftover_unit_tests

Remove leftover unit test
parents 4cae5ae3 50ab20c2
No related branches found
No related tags found
No related merge requests found
...@@ -56,20 +56,6 @@ class SettingsControllerTest extends TestCase { ...@@ -56,20 +56,6 @@ class SettingsControllerTest extends TestCase {
$this->controller = new SettingsController('twofactor_backupcodes', $this->request, $this->storage, $this->userSession); $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() { public function testCreateCodes() {
$user = $this->getMockBuilder(IUser::class)->getMock(); $user = $this->getMockBuilder(IUser::class)->getMock();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment