mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-06 02:33:48 +00:00
38 lines
1.1 KiB
PHP
38 lines
1.1 KiB
PHP
<?php
|
|
namespace Tests\Domain\Plans;
|
|
|
|
use Tests\TestCase;
|
|
use Illuminate\Support\Str;
|
|
|
|
class SetupWizardPlansTest extends TestCase
|
|
{
|
|
/**
|
|
*
|
|
*/
|
|
public function it_store_stripe_plans_via_setup_wizard()
|
|
{
|
|
$this->postJson('/api/setup/stripe-plans', [
|
|
'plans' => [
|
|
[
|
|
'type' => 'plan',
|
|
'attributes' => [
|
|
'name' => 'test-plan-' . Str::random(),
|
|
'price' => (string) rand(1, 99),
|
|
'description' => 'Some random description',
|
|
'capacity' => rand(1, 999),
|
|
],
|
|
],
|
|
[
|
|
'type' => 'plan',
|
|
'attributes' => [
|
|
'name' => 'test-plan-' . Str::random(),
|
|
'price' => (string) rand(1, 99),
|
|
'description' => 'Some random description',
|
|
'capacity' => rand(1, 999),
|
|
],
|
|
],
|
|
],
|
|
])->assertStatus(204);
|
|
}
|
|
}
|