mirror of
https://github.com/koel/koel
synced 2024-12-23 11:03:05 +00:00
21 lines
464 B
PHP
21 lines
464 B
PHP
<?php
|
|
|
|
namespace Tests\Integration\Models;
|
|
|
|
use App\Models\User;
|
|
use Tests\TestCase;
|
|
|
|
class UserTest extends TestCase
|
|
{
|
|
/** @test */
|
|
public function sensitive_preferences_are_hidden()
|
|
{
|
|
/** @var User $user */
|
|
$user = factory(User::class)->create([
|
|
'preferences' => ['lastfm_session_key' => 'foo'],
|
|
]);
|
|
|
|
$value = $user->preferences['lastfm_session_key'];
|
|
self::assertEquals('hidden', $value);
|
|
}
|
|
}
|