Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Jan 24, 2025
1 parent ba53bf0 commit ae68ca9
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions tests/integration/notifications/NotificationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
namespace FoF\FollowTags\Tests\integration\notifications;

use Carbon\Carbon;
use Flarum\Notification\Notification;
use Flarum\Testing\integration\RetrievesAuthorizedUsers;
use Flarum\Testing\integration\TestCase;
use Flarum\User\User;
use FoF\FollowTags\Tests\integration\ExtensionDepsTrait;
use FoF\FollowTags\Tests\integration\TagsDefinitionTrait;
use Flarum\User\User;
use Flarum\Notification\Notification;

class NotificationsTest extends TestCase
{
Expand Down Expand Up @@ -305,7 +305,6 @@ public function no_notification_sent_when_new_post_mention_in_ignored_tag()
$this->assertEquals(0, count($response['data']));
$this->assertEquals(0, User::query()->find($notificationRecipient)->notifications()->count());
$this->assertEquals(0, Notification::query()->count());

}

/**
Expand Down Expand Up @@ -351,7 +350,6 @@ public function no_notification_sent_when_new_user_mention_in_ignored_tag()
$this->assertEquals(0, count($response['data']));
$this->assertEquals(0, User::query()->find($notificationRecipient)->notifications()->count());
$this->assertEquals(0, Notification::query()->count());

}

/**
Expand All @@ -364,14 +362,14 @@ public function notification_sent_when_discussion_retagged_to_accessible_tag()
'authenticatedAs' => 1,
'json' => [
'data' => [
'attributes' => [],
'attributes' => [],
'relationships' => [
'tags' => [
'data' => [
['type' => 'tags', 'id' => 2]
]
]
]
['type' => 'tags', 'id' => 2],
],
],
],
],
],
])
Expand Down Expand Up @@ -410,14 +408,14 @@ public function no_notification_sent_when_discussion_retagged_to_restricted_tag(
'authenticatedAs' => 1,
'json' => [
'data' => [
'attributes' => [],
'attributes' => [],
'relationships' => [
'tags' => [
'data' => [
['type' => 'tags', 'id' => 4]
]
]
]
['type' => 'tags', 'id' => 4],
],
],
],
],
],
])
Expand Down

0 comments on commit ae68ca9

Please sign in to comment.