Skip to content
Snippets Groups Projects
Commit 29f1e98c authored by lukasmatusiewicz's avatar lukasmatusiewicz
Browse files

Update tests

parent 6249c898
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ class PollTransactionTest extends TestCase implements PILog ...@@ -40,7 +40,7 @@ class PollTransactionTest extends TestCase implements PILog
*/ */
public function testTriggerPUSH() public function testTriggerPUSH()
{ {
$responseBody = "{\n" . " \"detail\": {\n" . "\"preferred_client_mode\":\"push\"," . " \"attributes\": null,\n" . $responseBody = "{\n" . " \"detail\": {\n" . "\"preferred_client_mode\":\"poll\"," . " \"attributes\": null,\n" .
" \"message\": \"Bitte geben Sie einen OTP-Wert ein: , Please confirm the authentication on your mobile device!\",\n" . " \"message\": \"Bitte geben Sie einen OTP-Wert ein: , Please confirm the authentication on your mobile device!\",\n" .
" \"messages\": [\n" . " \"Bitte geben Sie einen OTP-Wert ein: \",\n" . " \"messages\": [\n" . " \"Bitte geben Sie einen OTP-Wert ein: \",\n" .
" \"Please confirm the authentication on your mobile device!\"\n" . " ],\n" . " \"Please confirm the authentication on your mobile device!\"\n" . " ],\n" .
......
...@@ -85,7 +85,7 @@ class TriggerChallengeTest extends TestCase implements PILog ...@@ -85,7 +85,7 @@ class TriggerChallengeTest extends TestCase implements PILog
$this->assertEquals("BittegebenSieeinenOTP-Wertein:", $response->message); $this->assertEquals("BittegebenSieeinenOTP-Wertein:", $response->message);
$this->assertEquals("BittegebenSieeinenOTP-Wertein:", $response->messages); $this->assertEquals("BittegebenSieeinenOTP-Wertein:", $response->messages);
$this->assertEquals("16734787285577957577", $response->transactionID); $this->assertEquals("16734787285577957577", $response->transactionID);
$this->assertEquals("interactive", $response->preferredClientMode); $this->assertEquals("otp", $response->preferredClientMode);
$this->assertTrue($response->status); $this->assertTrue($response->status);
$this->assertFalse($response->value); $this->assertFalse($response->value);
$this->assertEquals("totp", $response->triggeredTokenTypes()[0]); $this->assertEquals("totp", $response->triggeredTokenTypes()[0]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment