blessing-skin-server/tests/HttpTest/ViewTest/ComposersTest/UserMenuComposerTest.php
2020-01-12 09:27:39 +08:00

23 lines
566 B
PHP

<?php
namespace Tests;
use App\Models\User;
class UserMenuComposerTest extends TestCase
{
public function testAvatar()
{
$user = factory(User::class)->make();
$this->actingAs($user)
->get('/')
->assertSee(url('/avatar/user/'.$user->uid.'?size=25'));
$this->actingAs($user)
->get('/skinlib')
->assertSee(url('/avatar/user/'.$user->uid.'?size=25'));
$this->actingAs($user)
->get('/user')
->assertSee(url('/avatar/user/'.$user->uid.'?size=25'));
}
}