add test batches
This commit is contained in:
@@ -23,7 +23,7 @@ class NotificationManagementServiceTest extends TestCase
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
|
||||
$service = new NotificationManagementService;
|
||||
$service = new NotificationManagementService();
|
||||
$result = $service->update(1, ['title' => 'New']);
|
||||
|
||||
$this->assertTrue($result['ok']);
|
||||
@@ -35,7 +35,7 @@ class NotificationManagementServiceTest extends TestCase
|
||||
|
||||
public function test_update_returns_false_when_missing(): void
|
||||
{
|
||||
$service = new NotificationManagementService;
|
||||
$service = new NotificationManagementService();
|
||||
$result = $service->update(999, ['title' => 'New']);
|
||||
|
||||
$this->assertFalse($result['ok']);
|
||||
@@ -53,7 +53,7 @@ class NotificationManagementServiceTest extends TestCase
|
||||
'updated_at' => now(),
|
||||
]);
|
||||
|
||||
$service = new NotificationManagementService;
|
||||
$service = new NotificationManagementService();
|
||||
$this->assertTrue($service->delete(1));
|
||||
$this->assertSoftDeleted('notifications', ['id' => 1]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user