Domain\Teacher\TeacherRepositoryTest::test_update PHP Метод

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

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