новый дизайн

This commit is contained in:
2026-07-25 18:36:45 +04:00
parent df7f98fe8b
commit c43a73e148
54 changed files with 4234 additions and 1110 deletions
+11 -1
View File
@@ -6,6 +6,7 @@ use App\Models\GameAccountUser;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Schema;
use Inertia\Testing\AssertableInertia as Assert;
use Tests\TestCase;
class AdminShopFeatureTest extends TestCase
@@ -66,7 +67,16 @@ class AdminShopFeatureTest extends TestCase
$this->assertDatabaseHas('store_services', ['name' => 'Спектральный тигр', 'price' => 3000], 'store');
$this->assertDatabaseHas('store_category_service_link', ['category' => $categoryId], 'store');
$this->actingAs($admin)->get(route('admin.shop.index'))->assertOk()->assertSee('Спектральный тигр');
$this->actingAs($admin)
->get(route('admin.shop.index'))
->assertOk()
->assertInertia(fn (Assert $page) => $page
->component('Admin/Shop', false)
->where('categories.0.name', 'Маунты')
->where('products.0.name', 'Спектральный тигр')
->where('products.0.category_ids.0', $categoryId)
->etc()
);
}
public function test_regular_player_cannot_manage_store(): void