forked from lesstif/php-JiraCloud-RESTAPI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWatcherLogTest.php
More file actions
41 lines (32 loc) · 1019 Bytes
/
Copy pathWatcherLogTest.php
File metadata and controls
41 lines (32 loc) · 1019 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
namespace JiraCloud\Test;
use PHPUnit\Framework\TestCase;
use JiraCloud\Dumper;
use JiraCloud\Issue\IssueService;
use JiraCloud\JiraException;
class WatcherLogTest extends TestCase
{
public $issueKey = 'TEST-315';
public function testAddWatcherLog()
{
try {
$issueService = new IssueService();
// add issue watcher
$ret = $issueService->addWatcher($this->issueKey, 'lesstif');
Dumper::dump($ret);
} catch (JiraException $e) {
$this->assertTrue(false, 'testAddWatcherLog Failed : '.$e->getMessage());
}
}
public function testRemoveWatcherLog()
{
try {
$issueService = new IssueService();
// remove issue watcher
$ret = $issueService->removeWatcher($this->issueKey, 'lesstif');
Dumper::dump($ret);
} catch (JiraException $e) {
$this->assertTrue(false, 'testRemoveWatcherLog Failed : '.$e->getMessage());
}
}
}