Domain\Classroom\ClassroomRepositoryTest::test_update PHP Method

test_update() public method

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