blob: 3a0519fbdc579a3a7b9762edf29ae772216c2664 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<?php
use Kanboard\Model\InviteModel;
require_once __DIR__.'/../Base.php';
class InviteModelTest extends Base
{
public function testCreation()
{
$inviteModel = new InviteModel($this->container);
$this->container['emailClient']
->expects($this->exactly(2))
->method('send');
$inviteModel->createInvites(array('user@domain1.tld', '', 'user@domain2.tld'), 1);
}
public function testRemove()
{
$inviteModel = new InviteModel($this->container);
$inviteModel->createInvites(array('user@domain1.tld', 'user@domain2.tld'), 0);
$this->assertTrue($inviteModel->remove('user@domain1.tld'));
$this->assertFalse($inviteModel->remove('foobar'));
}
}
|