This commit is contained in:
2026-10-03 14:33:08 +04:00
parent 6a73d760c4
commit 93a9442e1c
67 changed files with 941 additions and 698 deletions
+4 -4
View File
@@ -3,7 +3,7 @@
namespace Tests\Feature;
use App\Models\GameAccountUser;
use App\Services\AzerothCoreAccountService;
use App\Services\VMangosAccountService;
use App\Services\BalanceService;
use App\Services\GameClientDownloadService;
use App\Services\StoreAvailabilityService;
@@ -34,7 +34,7 @@ class CabinetFeatureTest extends TestCase
{
$user = $this->makeUser();
$this->mock(AzerothCoreAccountService::class, function (MockInterface $mock) use ($user): void {
$this->mock(VMangosAccountService::class, function (MockInterface $mock) use ($user): void {
$mock->shouldReceive('charactersForAccount')
->once()
->with($user->id)
@@ -90,7 +90,7 @@ class CabinetFeatureTest extends TestCase
{
$user = $this->makeUser();
$this->mock(AzerothCoreAccountService::class, function (MockInterface $mock) use ($user): void {
$this->mock(VMangosAccountService::class, function (MockInterface $mock) use ($user): void {
$mock->shouldReceive('validatePassword')
->once()
->with($user, 'OldPass123')
@@ -115,7 +115,7 @@ class CabinetFeatureTest extends TestCase
{
$user = $this->makeUser();
$this->mock(AzerothCoreAccountService::class, function (MockInterface $mock) use ($user): void {
$this->mock(VMangosAccountService::class, function (MockInterface $mock) use ($user): void {
$mock->shouldReceive('validatePassword')
->once()
->with($user, 'WrongPass123')