Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Coderberg committed May 5, 2023
1 parent ee67cfd commit 33ca869
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/E2E/User/GoogleAuthenticatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function testSetUpAuthenticator(): void
$client->clickLink('Set up Google Authenticator');
$crawler = $client->waitForVisibility('#generatedSecret');
$secret = $crawler->filter('#generatedSecret')->text();
$this->assertSame(52, \strlen($secret));
$this->assertSame(52, mb_strlen($secret));

self::$secret = $secret;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function testGetAuthCode(): void
$this->assertResponseIsSuccessful();
$response = $client->getResponse();
$this->assertJson($response->getContent());
$this->assertTrue(\strlen($response->getContent()) > 2000 && \strlen($response->getContent()) < 3100);
$this->assertTrue(mb_strlen($response->getContent()) > 2000 && mb_strlen($response->getContent()) < 3100);
$this->assertContainsWords($response, ['secret', 'qr_code', 'data:image', 'png;base64']);
}

Expand Down

0 comments on commit 33ca869

Please sign in to comment.