diff --git a/tests/Unit/Models/PluginTest.php b/tests/Unit/Models/PluginTest.php index 49d3f2e..b42668d 100644 --- a/tests/Unit/Models/PluginTest.php +++ b/tests/Unit/Models/PluginTest.php @@ -4,12 +4,8 @@ use App\Models\Plugin; use App\Models\User; use Carbon\Carbon; use Illuminate\Support\Facades\Http; -use Livewire\Volt\Volt; -use Illuminate\Foundation\Testing\RefreshDatabase; -use Tests\TestCase; - -uses(TestCase::class,RefreshDatabase::class); +uses(Illuminate\Foundation\Testing\RefreshDatabase::class); test('plugin has required attributes', function (): void { $plugin = Plugin::factory()->create([ @@ -684,56 +680,25 @@ test('plugin render includes utc_offset and time_zone_iana in trmnl.user context ->and($rendered)->toMatch('/\|-?\d+/'); // Should contain a pipe followed by a number (offset in seconds) }); - /** * Plugin security: XSS Payload Dataset - * [Input, Expected to See, Dangerous parts that must be Missing] + * [Input, Expected Result, Forbidden String] */ dataset('xss_vectors', [ - 'standard_script' => [ - 'Safe ', - 'Safe', - ['', - 'Unclosed tag', - ['', 'Safe ', '