slovocast/app/tests/Infrastructure/User/BasicAuthorizationTest.php

17 lines
430 B
PHP
Raw Normal View History

2024-05-26 02:55:47 +00:00
<?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));
}
}