diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index 2aace15..0000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,7 +0,0 @@
-# Changelog
-
-All notable changes to `laravel-auth-log` will be documented in this file.
-
-## 1.0 - 2022-01-10
-
-- Initial release
diff --git a/composer.json b/composer.json
index 2a99f0b..b9b0b04 100644
--- a/composer.json
+++ b/composer.json
@@ -15,7 +15,7 @@
},
"require-dev": {
"orchestra/testbench": "^8.0|^9.0",
- "nunomaduro/larastan": "^2.0"
+ "larastan/larastan": "^2.0"
},
"extra": {
"laravel": {
diff --git a/phpunit.xml.dist b/phpunit.xml.dist
index feca3c6..09ec93f 100644
--- a/phpunit.xml.dist
+++ b/phpunit.xml.dist
@@ -1,21 +1,17 @@
-
-
-
- src/
-
-
-
+
+
- ./tests
+ ./tests
-
-
+
+
-
-
\ No newline at end of file
+
+
+
diff --git a/tests/Custom/CustomEventsTest.php b/tests/Custom/CustomEventsTest.php
index bbafdc6..6a73956 100644
--- a/tests/Custom/CustomEventsTest.php
+++ b/tests/Custom/CustomEventsTest.php
@@ -16,8 +16,7 @@ public function setUp(): void
parent::setUp();
}
- /** @test */
- public function it_can_add_context_to_the_database_record()
+ public function test_it_can_add_context_to_the_database_record()
{
$event = new \Illuminate\Auth\Events\Login('web', $this->user, false);
diff --git a/tests/Events/EventsTest.php b/tests/Events/EventsTest.php
index 4cac1e5..0d538d1 100644
--- a/tests/Events/EventsTest.php
+++ b/tests/Events/EventsTest.php
@@ -16,8 +16,7 @@ public function setUp(): void
parent::setUp();
}
- /** @test */
- public function it_triggers_log_auth_action_on_attempting_event()
+ public function test_it_triggers_log_auth_action_on_attempting_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
@@ -26,8 +25,7 @@ public function it_triggers_log_auth_action_on_attempting_event()
$logAuthAction->shouldHaveReceived('handle')->once();
}
- /** @test */
- public function it_triggers_log_auth_action_on_authenticated_event()
+ public function test_it_triggers_log_auth_action_on_authenticated_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
@@ -36,8 +34,7 @@ public function it_triggers_log_auth_action_on_authenticated_event()
$logAuthAction->shouldHaveReceived('handle')->once();
}
- /** @test */
- public function it_triggers_log_auth_action_on_failed_event()
+ public function test_it_triggers_log_auth_action_on_failed_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
@@ -46,8 +43,7 @@ public function it_triggers_log_auth_action_on_failed_event()
$logAuthAction->shouldHaveReceived('handle')->once();
}
- /** @test */
- public function it_triggers_log_auth_action_on_lockout_event()
+ public function test_it_triggers_log_auth_action_on_lockout_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
@@ -56,8 +52,7 @@ public function it_triggers_log_auth_action_on_lockout_event()
$logAuthAction->shouldHaveReceived('handle')->once();
}
- /** @test */
- public function it_triggers_log_auth_action_on_login_event()
+ public function test_it_triggers_log_auth_action_on_login_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
@@ -66,8 +61,7 @@ public function it_triggers_log_auth_action_on_login_event()
$logAuthAction->shouldHaveReceived('handle')->once();
}
- /** @test */
- public function it_triggers_log_auth_action_on_logout_event()
+ public function test_it_triggers_log_auth_action_on_logout_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
@@ -76,8 +70,7 @@ public function it_triggers_log_auth_action_on_logout_event()
$logAuthAction->shouldHaveReceived('handle')->once();
}
- /** @test */
- public function it_triggers_log_auth_action_on_other_device_logout_event()
+ public function test_it_triggers_log_auth_action_on_other_device_logout_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
@@ -86,8 +79,7 @@ public function it_triggers_log_auth_action_on_other_device_logout_event()
$logAuthAction->shouldHaveReceived('handle')->once();
}
- /** @test */
- public function it_triggers_log_auth_action_on_password_reset_event()
+ public function test_it_triggers_log_auth_action_on_password_reset_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
@@ -96,8 +88,7 @@ public function it_triggers_log_auth_action_on_password_reset_event()
$logAuthAction->shouldHaveReceived('handle')->once();
}
- /** @test */
- public function it_triggers_log_auth_action_on_registered_event()
+ public function test_it_triggers_log_auth_action_on_registered_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
@@ -106,8 +97,7 @@ public function it_triggers_log_auth_action_on_registered_event()
$logAuthAction->shouldHaveReceived('handle')->once();
}
- /** @test */
- public function it_triggers_log_auth_action_on_verified_event()
+ public function test_it_triggers_log_auth_action_on_verified_event()
{
$logAuthAction = $this->spy(LogAuthAction::class);
diff --git a/tests/Listeners/ListenerTest.php b/tests/Listeners/ListenerTest.php
index 509ea96..3e27cea 100644
--- a/tests/Listeners/ListenerTest.php
+++ b/tests/Listeners/ListenerTest.php
@@ -16,8 +16,7 @@ public function setUp(): void
parent::setUp();
}
- /** @test */
- public function it_creates_a_database_record_on_attempting_event()
+ public function test_it_creates_a_database_record_on_attempting_event()
{
event(new \Illuminate\Auth\Events\Attempting('web', ['email' => $this->user->email], false));
@@ -28,8 +27,7 @@ public function it_creates_a_database_record_on_attempting_event()
->get());
}
- /** @test */
- public function it_does_not_create_a_database_record_on_authenticated_event()
+ public function test_it_does_not_create_a_database_record_on_authenticated_event()
{
event(new \Illuminate\Auth\Events\Authenticated('web', $this->user));
@@ -40,8 +38,7 @@ public function it_does_not_create_a_database_record_on_authenticated_event()
->get());
}
- /** @test */
- public function it_creates_a_database_record_on_failed_event()
+ public function test_it_creates_a_database_record_on_failed_event()
{
event(new \Illuminate\Auth\Events\Failed('web', null, ['email' => $this->user->email]));
@@ -52,8 +49,7 @@ public function it_creates_a_database_record_on_failed_event()
->get());
}
- /** @test */
- public function it_creates_a_database_record_on_lockout_event()
+ public function test_it_creates_a_database_record_on_lockout_event()
{
$request = new Request(['email' => $this->user->email]);
@@ -65,8 +61,7 @@ public function it_creates_a_database_record_on_lockout_event()
->get());
}
- /** @test */
- public function it_creates_a_database_record_on_login_event()
+ public function test_it_creates_a_database_record_on_login_event()
{
event(new \Illuminate\Auth\Events\Login('web', $this->user, false));
@@ -77,8 +72,7 @@ public function it_creates_a_database_record_on_login_event()
->get());
}
- /** @test */
- public function it_creates_a_database_record_on_logout_event()
+ public function test_it_creates_a_database_record_on_logout_event()
{
event(new \Illuminate\Auth\Events\Logout('web', $this->user));
@@ -89,8 +83,7 @@ public function it_creates_a_database_record_on_logout_event()
->get());
}
- /** @test */
- public function it_creates_a_database_record_on_other_device_logout_event()
+ public function test_it_creates_a_database_record_on_other_device_logout_event()
{
event(new \Illuminate\Auth\Events\OtherDeviceLogout('web', $this->user));
@@ -101,8 +94,7 @@ public function it_creates_a_database_record_on_other_device_logout_event()
->get());
}
- /** @test */
- public function it_creates_a_database_record_on_password_reset_event()
+ public function test_it_creates_a_database_record_on_password_reset_event()
{
event(new \Illuminate\Auth\Events\PasswordReset($this->user));
@@ -113,8 +105,7 @@ public function it_creates_a_database_record_on_password_reset_event()
->get());
}
- /** @test */
- public function it_creates_a_database_record_on_registered_event()
+ public function test_it_creates_a_database_record_on_registered_event()
{
event(new \Illuminate\Auth\Events\Registered($this->user));
@@ -125,8 +116,7 @@ public function it_creates_a_database_record_on_registered_event()
->get());
}
- /** @test */
- public function it_creates_a_database_record_on_verified_event()
+ public function test_it_creates_a_database_record_on_verified_event()
{
event(new \Illuminate\Auth\Events\Verified($this->user));