Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
butschster committed Oct 2, 2024
1 parent e2a2d1b commit 61c71e1
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions tests/Feature/Interfaces/Http/Events/ClearActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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')
Expand All @@ -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
Expand All @@ -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: [
Expand All @@ -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: [
Expand Down

0 comments on commit 61c71e1

Please sign in to comment.