From c1bd3e40fa237d5df8c0020085e4fb4b290ae2ad Mon Sep 17 00:00:00 2001 From: James Brooks Date: Sat, 18 Mar 2017 09:49:33 +0000 Subject: [PATCH] Fix some tests --- app/Bus/Events/User/UserWasCreatedEvent.php | 2 +- app/Bus/Events/User/UserWasInvitedEvent.php | 2 +- .../User/{AddUserCommandTest.php => CreateUserCommandTest.php} | 2 +- ...tWasAddedEventTest.php => ComponentWasCreatedEventTest.php} | 0 ...ddedEventTest.php => ComponentGroupWasCreatedEventTest.php} | 0 ...asAddedEventTest.php => MetricPointWasCreatedEventTest.php} | 2 +- ...tricWasAddedEventTest.php => MetricWasCreatedEventTest.php} | 0 .../{UserWasAddedEventTest.php => UserWasCreatedEventTest.php} | 3 ++- 8 files changed, 6 insertions(+), 5 deletions(-) rename tests/Bus/Commands/User/{AddUserCommandTest.php => CreateUserCommandTest.php} (96%) rename tests/Bus/Events/Component/{ComponentWasAddedEventTest.php => ComponentWasCreatedEventTest.php} (100%) rename tests/Bus/Events/ComponentGroup/{ComponentGroupWasAddedEventTest.php => ComponentGroupWasCreatedEventTest.php} (100%) rename tests/Bus/Events/Metric/{MetricPointWasAddedEventTest.php => MetricPointWasCreatedEventTest.php} (93%) rename tests/Bus/Events/Metric/{MetricWasAddedEventTest.php => MetricWasCreatedEventTest.php} (100%) rename tests/Bus/Events/User/{UserWasAddedEventTest.php => UserWasCreatedEventTest.php} (88%) diff --git a/app/Bus/Events/User/UserWasCreatedEvent.php b/app/Bus/Events/User/UserWasCreatedEvent.php index 1dd02484..a013352a 100644 --- a/app/Bus/Events/User/UserWasCreatedEvent.php +++ b/app/Bus/Events/User/UserWasCreatedEvent.php @@ -47,7 +47,7 @@ final class UserWasCreatedEvent implements ActionInterface, UserEventInterface */ public function __toString() { - return 'User was added.'; + return 'User was created.'; } /** diff --git a/app/Bus/Events/User/UserWasInvitedEvent.php b/app/Bus/Events/User/UserWasInvitedEvent.php index 1df56261..529efce0 100644 --- a/app/Bus/Events/User/UserWasInvitedEvent.php +++ b/app/Bus/Events/User/UserWasInvitedEvent.php @@ -23,7 +23,7 @@ use CachetHQ\Cachet\Models\Invite; final class UserWasInvitedEvent implements UserEventInterface { /** - * The invite that has been added. + * The invite that has been created. * * @var \CachetHQ\Cachet\Models\Invite */ diff --git a/tests/Bus/Commands/User/AddUserCommandTest.php b/tests/Bus/Commands/User/CreateUserCommandTest.php similarity index 96% rename from tests/Bus/Commands/User/AddUserCommandTest.php rename to tests/Bus/Commands/User/CreateUserCommandTest.php index 336394da..3a4b8be1 100644 --- a/tests/Bus/Commands/User/AddUserCommandTest.php +++ b/tests/Bus/Commands/User/CreateUserCommandTest.php @@ -17,7 +17,7 @@ use CachetHQ\Cachet\Bus\Handlers\Commands\User\CreateUserCommandHandler; use CachetHQ\Tests\Cachet\AbstractTestCase; /** - * This is the add user command test class. + * This is the create user command test class. * * @author James Brooks * @author Graham Campbell diff --git a/tests/Bus/Events/Component/ComponentWasAddedEventTest.php b/tests/Bus/Events/Component/ComponentWasCreatedEventTest.php similarity index 100% rename from tests/Bus/Events/Component/ComponentWasAddedEventTest.php rename to tests/Bus/Events/Component/ComponentWasCreatedEventTest.php diff --git a/tests/Bus/Events/ComponentGroup/ComponentGroupWasAddedEventTest.php b/tests/Bus/Events/ComponentGroup/ComponentGroupWasCreatedEventTest.php similarity index 100% rename from tests/Bus/Events/ComponentGroup/ComponentGroupWasAddedEventTest.php rename to tests/Bus/Events/ComponentGroup/ComponentGroupWasCreatedEventTest.php diff --git a/tests/Bus/Events/Metric/MetricPointWasAddedEventTest.php b/tests/Bus/Events/Metric/MetricPointWasCreatedEventTest.php similarity index 93% rename from tests/Bus/Events/Metric/MetricPointWasAddedEventTest.php rename to tests/Bus/Events/Metric/MetricPointWasCreatedEventTest.php index df7ec505..4c903e0c 100644 --- a/tests/Bus/Events/Metric/MetricPointWasAddedEventTest.php +++ b/tests/Bus/Events/Metric/MetricPointWasCreatedEventTest.php @@ -16,7 +16,7 @@ use CachetHQ\Cachet\Models\MetricPoint; use CachetHQ\Cachet\Models\User; /** - * This is the metric point was added event test class. + * This is the metric point was created event test class. * * @author James Brooks */ diff --git a/tests/Bus/Events/Metric/MetricWasAddedEventTest.php b/tests/Bus/Events/Metric/MetricWasCreatedEventTest.php similarity index 100% rename from tests/Bus/Events/Metric/MetricWasAddedEventTest.php rename to tests/Bus/Events/Metric/MetricWasCreatedEventTest.php diff --git a/tests/Bus/Events/User/UserWasAddedEventTest.php b/tests/Bus/Events/User/UserWasCreatedEventTest.php similarity index 88% rename from tests/Bus/Events/User/UserWasAddedEventTest.php rename to tests/Bus/Events/User/UserWasCreatedEventTest.php index 3c231813..574567d2 100644 --- a/tests/Bus/Events/User/UserWasAddedEventTest.php +++ b/tests/Bus/Events/User/UserWasCreatedEventTest.php @@ -15,9 +15,10 @@ use CachetHQ\Cachet\Bus\Events\User\UserWasCreatedEvent; use CachetHQ\Cachet\Models\User; /** - * This is the user was added event test class. + * This is the user was created event test class. * * @author Graham Campbell + * @author James Brooks */ class UserWasCreatedEventTest extends AbstractUserEventTestCase {