Skip to content

Commit

Permalink
chore: refactor test method names to use snake_case and remove unused…
Browse files Browse the repository at this point in the history
… linting configuration

Signed-off-by: Gabriel do Carmo Vieira <[email protected]>
  • Loading branch information
gvieira18 committed Dec 20, 2024
1 parent 8f83fcf commit a4bffa9
Show file tree
Hide file tree
Showing 10 changed files with 85 additions and 84 deletions.
4 changes: 0 additions & 4 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ pre-commit:
format:
tags: formatting
run: ./vendor/bin/pint --no-interaction --test --preset=laravel {staged_files}
lint:
tags: linting
glob: "*.{php}"
run: ./vendor/bin/phpcs --standard=PSR12 {staged_files}

pre-push:
parallel: false
Expand Down
2 changes: 1 addition & 1 deletion public/css/filament/filament/app.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/css/filament/forms/forms.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/js/filament/filament/echo.js

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions public/js/filament/forms/components/file-upload.js

Large diffs are not rendered by default.

110 changes: 58 additions & 52 deletions public/js/filament/forms/components/rich-editor.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions public/js/filament/support/support.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class AuthenticatedUserControllerTest extends TestCase
{
use RefreshDatabase;

public function testPutSettings()
public function test_put_settings()
{
// Arrange

Expand Down Expand Up @@ -75,7 +75,7 @@ public function testPutSettings()
}

#[DataProvider('settingsDataProvider')]
public function testGetSettings(?string $payload, int $count)
public function test_get_settings(?string $payload, int $count)
{
// Arrange
$user = User::factory()->create();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,5 @@ public function test_can_do_stuff()
],
],
]);

}
}
6 changes: 3 additions & 3 deletions tests/Unit/app/Models/Settings/OccupationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

class OccupationTest extends TestCase
{
public function testOccupationCanBeCreated()
public function test_occupation_can_be_created()
{
Occupation::factory()->create([
'name' => 'Developer',
Expand All @@ -23,7 +23,7 @@ public function testOccupationCanBeCreated()
]);
}

public function testImageUrlAttribute()
public function test_image_url_attribute()
{
$occupation = Occupation::factory()->create([
'slug' => 'developer',
Expand All @@ -34,7 +34,7 @@ public function testImageUrlAttribute()
$this->assertEquals($expectedUrl, $occupation->image_url);
}

public function testOccupationHasManySettings()
public function test_occupation_has_many_settings()
{
$occupation = Occupation::factory()->create();
$settings = Settings::factory()->create(['occupation_id' => $occupation->id]);
Expand Down

0 comments on commit a4bffa9

Please sign in to comment.