Skip to content

Commit a99571e

Browse files
committed
Added missing before annotations
1 parent 6befa4d commit a99571e

26 files changed

+79
-0
lines changed

tests/Bus/Commands/Component/AddComponentCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class AddComponentCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([ComponentWasAddedEvent::class]);

tests/Bus/Commands/Component/RemoveComponentCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class RemoveComponentCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([ComponentWasRemovedEvent::class]);

tests/Bus/Commands/Component/UpdateComponentCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class UpdateComponentCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([ComponentWasUpdatedEvent::class]);

tests/Bus/Commands/ComponentGroup/RemoveComponentGroupCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class RemoveComponentGroupCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([ComponentGroupWasRemovedEvent::class]);

tests/Bus/Commands/ComponentGroup/UpdateComponentGroupCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class UpdateComponentGroupCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([ComponentGroupWasUpdatedEvent::class]);

tests/Bus/Commands/Incident/RemoveIncidentCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class RemoveIncidentCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([IncidentWasRemovedEvent::class]);

tests/Bus/Commands/Incident/ReportIncidentCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class ReportIncidentCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([IncidentWasReportedEvent::class]);

tests/Bus/Commands/Incident/ReportMaintenanceCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class ReportMaintenanceCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([MaintenanceWasScheduledEvent::class]);

tests/Bus/Commands/Incident/UpdateIncidentCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class UpdateIncidentCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([IncidentWasUpdatedEvent::class]);

tests/Bus/Commands/Invite/ClaimInviteCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class ClaimInviteCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([InviteWasClaimedEvent::class]);

tests/Bus/Commands/Metric/AddMetricCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class AddMetricCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([MetricWasAddedEvent::class]);

tests/Bus/Commands/Metric/AddMetricPointCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class AddMetricPointCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([MetricPointWasAddedEvent::class]);

tests/Bus/Commands/Metric/RemoveMetricCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class RemoveMetricCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([MetricWasRemovedEvent::class]);

tests/Bus/Commands/Metric/RemoveMetricPointCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class RemoveMetricPointCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([MetricPointWasRemovedEvent::class]);

tests/Bus/Commands/Metric/UpdateMetricCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class UpdateMetricCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([MetricWasUpdatedEvent::class]);

tests/Bus/Commands/Metric/UpdateMetricPointCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class UpdateMetricPointCommandTest extends AbstractTestCase
2929
{
3030
use CommandTrait;
3131

32+
/**
33+
* @before
34+
*/
3235
public function setEventExpectations()
3336
{
3437
$this->onlyExpectsEvents([MetricPointWasUpdatedEvent::class]);

tests/Bus/Commands/Subscriber/SubscribeSubscriberCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class SubscribeSubscriberCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([SubscriberHasSubscribedEvent::class]);

tests/Bus/Commands/Subscriber/UnsubscribeSubscriberCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class UnsubscribeSubscriberCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([SubscriberHasUnsubscribedEvent::class]);

tests/Bus/Commands/Subscriber/UnsubscribeSubscriptionCommandTest.php

+4
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,15 @@
2222
* This is the unsubscribe subscriber command test class.
2323
*
2424
* @author Joseph Cohen <joe@alt-three.com>
25+
* @author James Brooks <james@alt-three.com>
2526
*/
2627
class UnsubscribeSubscriptionCommandTest extends AbstractTestCase
2728
{
2829
use CommandTrait;
2930

31+
/**
32+
* @before
33+
*/
3034
public function setEventExpectations()
3135
{
3236
$this->onlyExpectsEvents([SubscriberHasUpdatedSubscriptionsEvent::class]);

tests/Bus/Commands/Subscriber/UpdateSubscriberSubscriptionCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class UpdateSubscriberSubscriptionCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([SubscriberHasUpdatedSubscriptionsEvent::class]);

tests/Bus/Commands/Subscriber/VerifySubscriberCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class VerifySubscriberCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([SubscriberHasVerifiedEvent::class]);

tests/Bus/Commands/User/AddUserCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class AddUserCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([UserWasAddedEvent::class]);

tests/Bus/Commands/User/GenerateApiTokenCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class GenerateApiTokenCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([]);

tests/Bus/Commands/User/InviteUserCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class InviteUserCommandTest extends AbstractTestCase
2727
{
2828
use CommandTrait;
2929

30+
/**
31+
* @before
32+
*/
3033
public function setEventExpectations()
3134
{
3235
$this->onlyExpectsEvents([UserWasInvitedEvent::class]);

tests/Bus/Commands/User/RemoveUserCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ class RemoveUserCommandTest extends AbstractTestCase
2828
{
2929
use CommandTrait;
3030

31+
/**
32+
* @before
33+
*/
3134
public function setEventExpectations()
3235
{
3336
$this->onlyExpectsEvents([UserWasRemovedEvent::class]);

tests/Bus/Commands/User/SignupUserCommandTest.php

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ class SignupUserCommandTest extends AbstractTestCase
2525
{
2626
use CommandTrait;
2727

28+
/**
29+
* @before
30+
*/
2831
public function setEventExpectations()
2932
{
3033
$this->onlyExpectsEvents([]);

0 commit comments

Comments
 (0)