Domain\Employee\Http\EmployeeControllerTest::test_show PHP Метод

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

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