mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
21 lines
559 B
PHP
21 lines
559 B
PHP
<?php
|
|
|
|
namespace Tests\Feature;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
|
use Tests\BrowserKitTestCase;
|
|
|
|
class ProfileTest extends BrowserKitTestCase
|
|
{
|
|
use WithoutMiddleware, DatabaseTransactions;
|
|
|
|
public function testUpdate()
|
|
{
|
|
$user = factory(User::class)->create();
|
|
$this->putAsUser('api/me', ['name' => 'Foo', 'email' => 'bar@baz.com'], $user);
|
|
|
|
$this->seeInDatabase('users', ['name' => 'Foo', 'email' => 'bar@baz.com']);
|
|
}
|
|
}
|