Domain\Schedule\ScheduleRepositoryTest::test_update PHP Method

test_update() public method

public test_update ( )
    public function test_update()
    {
        $repo = App::make(ScheduleRepository::class);
        $schedule = factory(Schedule::class)->create();
        $update = $repo->update(['name' => 'oi 2'], $schedule->id);
        $this->assertInstanceOf(Schedule::class, $update);
        $this->assertEquals($schedule->id, $update->id);
    }