Skip to content

Commit d847acc

Browse files
committed
- Fixing tests
1 parent 8a13870 commit d847acc

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
testbench: 10.*
2828
carbon: ^3.8.4
2929
- laravel: 11.*
30-
testbench: 9.*
30+
testbench: ^9.16
3131
carbon: ^2.63
3232
- laravel: 10.*
3333
testbench: 8.*

tests/Feature/ActivityLogTest.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@ public function it_logs_the_ip(): void
8080
$this->assertEquals('apple', $new['slug']);
8181
}
8282

83-
/** @test */
84-
public function it_logs_model_create_events(): void
83+
public function test_it_logs_model_create_events(): void
8584
{
8685
$category = new Category(['name' => 'Apple', 'slug' => 'apple']);
8786
$category->save();
@@ -106,8 +105,7 @@ public function it_logs_model_create_events(): void
106105
$this->assertEquals('apple', $new['slug']);
107106
}
108107

109-
/** @test */
110-
public function it_logs_model_update_events(): void
108+
public function test_it_logs_model_update_events(): void
111109
{
112110
$category = new Category(['name' => 'Apple', 'slug' => 'apple']);
113111
$category->save();
@@ -137,8 +135,7 @@ public function it_logs_model_update_events(): void
137135
$this->assertEquals('orange', $new['slug']);
138136
}
139137

140-
/** @test */
141-
public function it_ignores_changes_to_attributes_marked_to_ignore(): void
138+
public function test_it_ignores_changes_to_attributes_marked_to_ignore(): void
142139
{
143140
$category = new CategoryIgnoreTimestamps(['name' => 'Apple', 'slug' => 'apple']);
144141
$category->save();
@@ -153,8 +150,7 @@ public function it_ignores_changes_to_attributes_marked_to_ignore(): void
153150
]);
154151
}
155152

156-
/** @test */
157-
public function it_does_not_log_hidden_attributes(): void
153+
public function test_it_does_not_log_hidden_attributes(): void
158154
{
159155
$category = new CategoryIgnoreHiddenSlug(['name' => 'Apple', 'slug' => 'apple']);
160156
$category->save();

0 commit comments

Comments
 (0)