Skip to content

Commit

Permalink
Add LoginServiceCest unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed Dec 8, 2023
1 parent 0ec18d1 commit cd01bdf
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tests/Unit/LoginServiceCest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

declare(strict_types=1);

namespace Yii\User\Tests\Unit;

use Yii;
use Yii\User\Tests\Support\UnitTester;
use Yii\User\UseCase\Login\LoginForm;
use Yii\User\UseCase\Login\LoginService;

final class LoginServiceCest
{
public function runWithIdentityIsNull(UnitTester $I): void
{
$loginService = Yii::createObject(LoginService::class);
$loginForm = Yii::createObject(LoginForm::class);

$I->assertFalse($loginService->run($loginForm));
}
}

0 comments on commit cd01bdf

Please sign in to comment.