| 1 |
# SPDX-License-Identifier: BSD-3-Clause-CMU |
| 2 |
# See COPYING file at the root of the distribution for more details. |
| 3 |
|
| 4 |
package Cassandane::Cyrus::XApplePushService; |
| 5 |
use strict; |
| 6 |
use warnings; |
| 7 |
|
| 8 |
use base qw(Cassandane::Cyrus::TestCase); |
| 9 |
use Cassandane::Util::Log; |
| 10 |
|
| 11 |
sub new |
| 12 |
{ |
| 13 |
my ($class, @args) = @_; |
| 14 |
|
| 15 |
my $config = Cassandane::Config->default()->clone(); |
| 16 |
$config->set(event_groups => 'applepushservice'); |
| 17 |
$config->set(aps_topic => 'mail'); |
| 18 |
|
| 19 |
return $class->SUPER::new({ |
| 20 |
adminstore => 1, |
| 21 |
config => $config, |
| 22 |
services => ['imap'], |
| 23 |
}, @args); |
| 24 |
} |
| 25 |
|
| 26 |
sub set_up |
| 27 |
{ |
| 28 |
my ($self) = @_; |
| 29 |
$self->SUPER::set_up(); |
| 30 |
} |
| 31 |
|
| 32 |
sub tear_down |
| 33 |
{ |
| 34 |
my ($self) = @_; |
| 35 |
$self->SUPER::tear_down(); |
| 36 |
} |
| 37 |
|
| 38 |
use Cassandane::Tiny::Loader 'tiny-tests/XApplePushService'; |
| 39 |
|
| 40 |
1; |