Elgg\HooksRegistrationService::backup PHP Méthode

backup() public méthode

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