diff --git a/tests/Bus/Events/System/AbstractSystemEventTestCase.php b/tests/Bus/Events/System/AbstractSystemEventTestCase.php new file mode 100644 index 000000000000..b500edcc3c3e --- /dev/null +++ b/tests/Bus/Events/System/AbstractSystemEventTestCase.php @@ -0,0 +1,31 @@ + + */ +abstract class AbstractSystemEventTestCase extends AbstractTestCase +{ + use EventTrait; + + protected function getEventInterfaces() + { + return [SystemEventInterface::class]; + } +} diff --git a/tests/Bus/Events/System/SystemCheckedForUpdatesEventTest.php b/tests/Bus/Events/System/SystemCheckedForUpdatesEventTest.php new file mode 100644 index 000000000000..45db84cdfd16 --- /dev/null +++ b/tests/Bus/Events/System/SystemCheckedForUpdatesEventTest.php @@ -0,0 +1,35 @@ + + */ +class SystemCheckedForUpdatesEventTest extends AbstractSystemEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = []; + $object = new SystemCheckedForUpdatesEvent(); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/System/SystemWasInstalledEventTest.php b/tests/Bus/Events/System/SystemWasInstalledEventTest.php new file mode 100644 index 000000000000..1cdd08415d89 --- /dev/null +++ b/tests/Bus/Events/System/SystemWasInstalledEventTest.php @@ -0,0 +1,35 @@ + + */ +class SystemWasInstalledEventTest extends AbstractSystemEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = []; + $object = new SystemWasInstalledEvent(); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/System/SystemWasResetEventTest.php b/tests/Bus/Events/System/SystemWasResetEventTest.php new file mode 100644 index 000000000000..35e593af464e --- /dev/null +++ b/tests/Bus/Events/System/SystemWasResetEventTest.php @@ -0,0 +1,35 @@ + + */ +class SystemWasResetEventTest extends AbstractSystemEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = []; + $object = new SystemWasResetEvent(); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/System/SystemWasUpdatedEventTest.php b/tests/Bus/Events/System/SystemWasUpdatedEventTest.php new file mode 100644 index 000000000000..2d89a4edbb3e --- /dev/null +++ b/tests/Bus/Events/System/SystemWasUpdatedEventTest.php @@ -0,0 +1,35 @@ + + */ +class SystemWasUpdatedEventTest extends AbstractSystemEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = []; + $object = new SystemWasUpdatedEvent(); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/User/UserDisabledTwoAuthEventTest.php b/tests/Bus/Events/User/UserDisabledTwoAuthEventTest.php new file mode 100644 index 000000000000..464c4181c5d3 --- /dev/null +++ b/tests/Bus/Events/User/UserDisabledTwoAuthEventTest.php @@ -0,0 +1,36 @@ + + */ +class UserDisabledTwoAuthEventTest extends AbstractUserEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = ['user' => new User()]; + $object = new UserDisabledTwoAuthEvent($params['user']); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/User/UserEnabledTwoAuthEventTest.php b/tests/Bus/Events/User/UserEnabledTwoAuthEventTest.php new file mode 100644 index 000000000000..0583ff74d32d --- /dev/null +++ b/tests/Bus/Events/User/UserEnabledTwoAuthEventTest.php @@ -0,0 +1,36 @@ + + */ +class UserEnabledTwoAuthEventTest extends AbstractUserEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = ['user' => new User()]; + $object = new UserEnabledTwoAuthEvent($params['user']); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/User/UserFailedTwoAuthEventTest.php b/tests/Bus/Events/User/UserFailedTwoAuthEventTest.php new file mode 100644 index 000000000000..4f892a242151 --- /dev/null +++ b/tests/Bus/Events/User/UserFailedTwoAuthEventTest.php @@ -0,0 +1,36 @@ + + */ +class UserFailedTwoAuthEventTest extends AbstractUserEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = ['user' => new User()]; + $object = new UserFailedTwoAuthEvent($params['user']); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/User/UserLoggedInEventTest.php b/tests/Bus/Events/User/UserLoggedInEventTest.php new file mode 100644 index 000000000000..a8f9f84a7d81 --- /dev/null +++ b/tests/Bus/Events/User/UserLoggedInEventTest.php @@ -0,0 +1,36 @@ + + */ +class UserLoggedInEventTest extends AbstractUserEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = ['user' => new User()]; + $object = new UserLoggedInEvent($params['user']); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/User/UserLoggedOutEventTest.php b/tests/Bus/Events/User/UserLoggedOutEventTest.php new file mode 100644 index 000000000000..34c16980427c --- /dev/null +++ b/tests/Bus/Events/User/UserLoggedOutEventTest.php @@ -0,0 +1,36 @@ + + */ +class UserLoggedOutEventTest extends AbstractUserEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = ['user' => new User()]; + $object = new UserLoggedOutEvent($params['user']); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/User/UserPassedTwoAuthEventTest.php b/tests/Bus/Events/User/UserPassedTwoAuthEventTest.php new file mode 100644 index 000000000000..d03dca4be733 --- /dev/null +++ b/tests/Bus/Events/User/UserPassedTwoAuthEventTest.php @@ -0,0 +1,36 @@ + + */ +class UserPassedTwoAuthEventTest extends AbstractUserEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = ['user' => new User()]; + $object = new UserPassedTwoAuthEvent($params['user']); + + return compact('params', 'object'); + } +} diff --git a/tests/Bus/Events/User/UserRegeneratedApiTokenEventTest.php b/tests/Bus/Events/User/UserRegeneratedApiTokenEventTest.php new file mode 100644 index 000000000000..98a3b72de66a --- /dev/null +++ b/tests/Bus/Events/User/UserRegeneratedApiTokenEventTest.php @@ -0,0 +1,36 @@ + + */ +class UserRegeneratedApiTokenEventTest extends AbstractUserEventTestCase +{ + protected function objectHasHandlers() + { + return false; + } + + protected function getObjectAndParams() + { + $params = ['user' => new User()]; + $object = new UserRegeneratedApiTokenEvent($params['user']); + + return compact('params', 'object'); + } +}