write new tests

This commit is contained in:
2025-05-12 17:05:42 +03:30
parent 70f3c36f58
commit db8cda55df
13 changed files with 507 additions and 18 deletions

View File

@@ -76,11 +76,10 @@ class StoreTest extends TestCase
public function test_can_create_a_call(): void
{
$operator = User::factory()->create();
$operator->telephone_id = 'tel-' . $this->faker->unique()->numerify('###');
$operator->save();
$operator = User::factory()->create([
'telephone_id' => $this->faker->unique()->numerify('###'),
]);
DB::table('events')->truncate();
$this->artisan('db:seed --class=EventSeeder');
$this->mock(NotificationService::class, function (MockInterface $mock) {