Domain\User\Http\UserControllerTest::test_show PHP Метод

test_show() публичный Метод

public test_show ( )
    public function test_show()
    {
        $model = m::mock(User::class);
        $repo = m::mock(UserRepository::class);
        $repo->shouldReceive('get')->once()->andReturn($model);
        App::instance(UserRepository::class, $repo);
        $controller = App::make(UserController::class);
        $get = $controller->show(1);
        $this->assertInstanceOf(User::class, $get);
    }