Domain\Billet\Http\BilletAssignorControllerTest::test_show_real PHP Method

test_show_real() public method

public test_show_real ( )
    public function test_show_real()
    {
        $billetAssignor = BilletAssignor::first();
        if (is_null($billetAssignor)) {
            $billetAssignor = factory(BilletAssignor::class)->create();
        }
        $controller = App::make(BilletAssignorController::class);
        $get = $controller->show($billetAssignor->id);
        $this->assertInstanceOf(BilletAssignor::class, $get);
        $this->assertEquals($get->id, $billetAssignor->id);
    }