From 61c71e18cdb79cd85efd0fe7c4a89a960bffbbbb Mon Sep 17 00:00:00 2001 From: Pavel Buchnev Date: Thu, 3 Oct 2024 00:29:29 +0400 Subject: [PATCH] Fix unit tests --- .../Http/Events/ClearActionTest.php | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/tests/Feature/Interfaces/Http/Events/ClearActionTest.php b/tests/Feature/Interfaces/Http/Events/ClearActionTest.php index f16150a..43a480d 100644 --- a/tests/Feature/Interfaces/Http/Events/ClearActionTest.php +++ b/tests/Feature/Interfaces/Http/Events/ClearActionTest.php @@ -10,10 +10,10 @@ final class ClearActionTest extends ControllerTestCase { public function testClearAllEvents(): void { - $event1 = $this->createEvent(type: 'foo'); - $event2 = $this->createEvent(type: 'foo', project: 'default'); - $event3 = $this->createEvent(type: 'bar'); - $event4 = $this->createEvent(type: 'baz', project: 'default'); + $event1 = $this->createEvent(type: 'foo', project: 'default'); + $event2 = $this->createEvent(type: 'foo', project: 'text'); + $event3 = $this->createEvent(type: 'bar', project: 'default'); + $event4 = $this->createEvent(type: 'baz', project: 'text'); $this->http ->clearEvents() @@ -26,9 +26,9 @@ public function testClearAllEvents(): void public function testClearEventsByType(): void { - $event1 = $this->createEvent(type: 'foo'); - $event2 = $this->createEvent(type: 'foo'); - $event3 = $this->createEvent(type: 'bar'); + $event1 = $this->createEvent(type: 'foo', project: 'default'); + $event2 = $this->createEvent(type: 'foo', project: 'default'); + $event3 = $this->createEvent(type: 'bar', project: 'default'); $this->http ->clearEvents(type: 'bar') @@ -41,9 +41,9 @@ public function testClearEventsByType(): void public function testClearEventsByProject(): void { - $event1 = $this->createEvent(type: 'foo'); + $event1 = $this->createEvent(type: 'foo', project: 'test'); $event2 = $this->createEvent(type: 'foo', project: 'default'); - $event3 = $this->createEvent(type: 'bar'); + $event3 = $this->createEvent(type: 'bar', project: 'test'); $event4 = $this->createEvent(type: 'baz', project: 'default'); $this->http @@ -57,11 +57,11 @@ public function testClearEventsByProject(): void public function testClearEventsByUuids(): void { - $event1 = $this->createEvent(type: 'foo'); - $event2 = $this->createEvent(type: 'foo'); - $event3 = $this->createEvent(type: 'foo'); - $event4 = $this->createEvent(type: 'foo'); - $event5 = $this->createEvent(type: 'bar'); + $event1 = $this->createEvent(type: 'foo', project: 'default'); + $event2 = $this->createEvent(type: 'foo', project: 'default'); + $event3 = $this->createEvent(type: 'foo', project: 'default'); + $event4 = $this->createEvent(type: 'foo', project: 'default'); + $event5 = $this->createEvent(type: 'bar', project: 'test'); $this->http ->clearEvents(uuids: [ @@ -79,11 +79,11 @@ public function testClearEventsByUuids(): void public function testClearEventsByTypeAndUuids(): void { - $event1 = $this->createEvent(type: 'foo'); - $event2 = $this->createEvent(type: 'foo'); - $event3 = $this->createEvent(type: 'foo'); - $event4 = $this->createEvent(type: 'foo'); - $event5 = $this->createEvent(type: 'bar'); + $event1 = $this->createEvent(type: 'foo', project: 'default'); + $event2 = $this->createEvent(type: 'foo', project: 'default'); + $event3 = $this->createEvent(type: 'foo', project: 'default'); + $event4 = $this->createEvent(type: 'foo', project: 'default'); + $event5 = $this->createEvent(type: 'bar', project: 'default'); $this->http ->clearEvents(type: 'foo', uuids: [