Elgg\HooksRegistrationService::backup PHP Method

backup() public method

Call backup() before your tests and restore() after.
See also: restore
public backup ( ) : void
return void
    public function backup()
    {
        $this->backups[] = $this->registrations;
        $this->registrations = [];
    }