fixed mobile
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
|
||||
namespace Tests\Feature\Platform;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Foundation\Testing\RefreshDatabase;
|
||||
use Modules\Platform\app\Models\PlatformPrice;
|
||||
use Tests\TestCase;
|
||||
|
||||
/**
|
||||
* Covers the legacy PricingController route by rendering the shared Platform price cards.
|
||||
*/
|
||||
class SharedPricingRouteTest extends TestCase
|
||||
{
|
||||
use RefreshDatabase;
|
||||
|
||||
/**
|
||||
* Ensure the Pricing module delegates to the shared Platform pricing display.
|
||||
*/
|
||||
public function test_legacy_pricing_module_route_renders_active_platform_prices(): void
|
||||
{
|
||||
$user = User::factory()->create();
|
||||
|
||||
PlatformPrice::create([
|
||||
'code' => 'basic',
|
||||
'name' => 'Basic',
|
||||
'strapline' => 'Starter access',
|
||||
'description' => 'Core WMS functions.',
|
||||
'monthly_amount' => 4900,
|
||||
'annual_amount' => 49000,
|
||||
'currency' => 'gbp',
|
||||
'badge_label' => 'Starter',
|
||||
'features' => ['2 warehouses', '10 users'],
|
||||
'sort_order' => 10,
|
||||
'is_featured' => false,
|
||||
'is_active' => true,
|
||||
]);
|
||||
|
||||
$this->actingAs($user)
|
||||
->get(route('pricing.index'))
|
||||
->assertOk()
|
||||
->assertSee('Pricing', false)
|
||||
->assertSee('Basic', false);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user