mirror of
https://github.com/koel/koel
synced 2024-12-27 04:53:08 +00:00
19 lines
487 B
PHP
19 lines
487 B
PHP
|
<?php
|
||
|
|
||
|
use App\Models\User;
|
||
|
use Illuminate\Foundation\Testing\DatabaseTransactions;
|
||
|
use Illuminate\Foundation\Testing\WithoutMiddleware;
|
||
|
|
||
|
class ProfileTest extends TestCase
|
||
|
{
|
||
|
use WithoutMiddleware, DatabaseTransactions;
|
||
|
|
||
|
public function testUpdate()
|
||
|
{
|
||
|
$this->actingAs(factory(User::class)->create())
|
||
|
->put('api/me', ['name' => 'Foo', 'email' => 'bar@baz.com']);
|
||
|
|
||
|
$this->seeInDatabase('users', ['name' => 'Foo', 'email' => 'bar@baz.com']);
|
||
|
}
|
||
|
}
|