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\InviteCodeService;
use Illuminate\Support\Collection;
use Inertia\Testing\AssertableInertia as Assert;
@@ -28,7 +28,7 @@ class AdminAccountsFeatureTest extends TestCase
public function test_admin_can_open_accounts_page(): void
{
$this->mock(AzerothCoreAccountService::class, function (MockInterface $mock): void {
$this->mock(VMangosAccountService::class, function (MockInterface $mock): void {
$mock->shouldReceive('accountTypeStats')
->once()
->with(null)
@@ -87,7 +87,7 @@ class AdminAccountsFeatureTest extends TestCase
public function test_admin_can_open_bots_tab(): void
{
$this->mock(AzerothCoreAccountService::class, function (MockInterface $mock): void {
$this->mock(VMangosAccountService::class, function (MockInterface $mock): void {
$mock->shouldReceive('accountTypeStats')
->once()
->with(null)
@@ -137,7 +137,7 @@ class AdminAccountsFeatureTest extends TestCase
public function test_admin_can_update_access_level(): void
{
$this->mock(AzerothCoreAccountService::class, function (MockInterface $mock): void {
$this->mock(VMangosAccountService::class, function (MockInterface $mock): void {
$mock->shouldReceive('findUserById')
->once()
->with(12)