Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Jan 22, 2024
1 parent c41763e commit faf7790
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 232 deletions.
5 changes: 5 additions & 0 deletions tests/ArchTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@
test('only traits are put in the Concerns directory')
->expect('Rawilk\FilamentPasswordInput\Concerns')
->toBeTraits();

test('actions are configured correctly')
->expect('Rawilk\FilamentPasswordInput\Actions')
->toBeClasses()
->toHaveSuffix('Action');
46 changes: 0 additions & 46 deletions tests/Concerns/CanCopyToClipboardTest.php

This file was deleted.

32 changes: 0 additions & 32 deletions tests/Concerns/CanRegeneratePasswordTest.php

This file was deleted.

25 changes: 0 additions & 25 deletions tests/Fixtures/Livewire.php

This file was deleted.

102 changes: 0 additions & 102 deletions tests/PasswordTest.php

This file was deleted.

13 changes: 0 additions & 13 deletions tests/Pest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,6 @@

declare(strict_types=1);

use Illuminate\Support\Facades\Blade;
use Illuminate\Support\Facades\Route;
use Rawilk\FilamentPasswordInput\Tests\TestCase;

uses(TestCase::class)->in(__DIR__);

// Helpers

function registerComponent(string $className): void
{
$template = <<<HTML
@livewire({$className}::class)
HTML;

Route::get('/_test', fn () => Blade::render($template));
}
11 changes: 0 additions & 11 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,11 @@

namespace Rawilk\FilamentPasswordInput\Tests;

use Illuminate\Foundation\Testing\Concerns\InteractsWithViews;
use Orchestra\Testbench\TestCase as Orchestra;
use Rawilk\FilamentPasswordInput\FilamentPasswordInputServiceProvider;

class TestCase extends Orchestra
{
use InteractsWithViews;

protected $enablesPackageDiscoveries = true;

protected function getPackageProviders($app): array
Expand All @@ -20,12 +17,4 @@ protected function getPackageProviders($app): array
FilamentPasswordInputServiceProvider::class,
];
}

protected function getEnvironmentSetUp($app): void
{
$app['config']->set('view.paths', [
...$app['config']->get('view.paths'),
__DIR__ . '/resources/views',
]);
}
}
3 changes: 0 additions & 3 deletions tests/resources/views/fixtures/form.blade.php

This file was deleted.

0 comments on commit faf7790

Please sign in to comment.