Add a test for the basic user auth
This commit is contained in:
parent
4548d67eac
commit
5a86bb3579
16
app/tests/Infrastructure/User/BasicAuthorizationTest.php
Normal file
16
app/tests/Infrastructure/User/BasicAuthorizationTest.php
Normal file
@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace Slovocast\Tests\Infrastructure\User;
|
||||
|
||||
use Slovocast\Tests\TestCase;
|
||||
use Slovocast\Infrastructure\User\BasicUserAuthorization;
|
||||
|
||||
class BasicAuthorizationTest extends TestCase
|
||||
{
|
||||
public function testPasswordVerify(): void
|
||||
{
|
||||
$basicAuth = new BasicUserAuthorization();
|
||||
$hashedPassword = $basicAuth->hash("hello");
|
||||
$this->assertTrue($basicAuth->verify("hello", $hashedPassword));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user