diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-03-15 13:56:36 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-03-15 19:08:57 +0300 |
commit | dfb3a94cabfe0491a9beb11cfbe4ecca5346faa2 (patch) | |
tree | e6a18bad436dc99930fecccab69597c7f9da1f6c /tests/Unit | |
parent | 0375e8e51e4ed8acf13b97cc2a01e814e44c6710 (diff) |
Swith to client-side QR lib
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'tests/Unit')
-rw-r--r-- | tests/Unit/Controller/SettingsControllerTest.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/Unit/Controller/SettingsControllerTest.php b/tests/Unit/Controller/SettingsControllerTest.php index df2a915..db0af7f 100644 --- a/tests/Unit/Controller/SettingsControllerTest.php +++ b/tests/Unit/Controller/SettingsControllerTest.php @@ -84,17 +84,11 @@ class SettingsControllerTest extends TestCase { ->method('createSecret') ->with($user) ->will($this->returnValue('newsecret')); - - $qrCode = new QrCode(); $issuer = rawurlencode($this->defaults->getName()); - $qr = $qrCode->setText("otpauth://totp/$issuer%3Auser%40instance.com?secret=newsecret&issuer=$issuer") - ->setSize(150) - ->writeDataUri(); - $expected = new JSONResponse([ 'state' => ITotp::STATE_CREATED, 'secret' => 'newsecret', - 'qr' => $qr, + 'qrUrl' => "otpauth://totp/$issuer%3Auser%40instance.com?secret=newsecret&issuer=$issuer", ]); $this->assertEquals($expected, $this->controller->enable(true)); |