-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathConfluenceIgnoreHtmlTest.php
More file actions
33 lines (28 loc) · 1.2 KB
/
ConfluenceIgnoreHtmlTest.php
File metadata and controls
33 lines (28 loc) · 1.2 KB
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
<?php
namespace Tests\Unit;
use App\Confluence;
use Tests\TestCase;
class ConfluenceIgnoreHtmlTest extends TestCase
{
public function testIgnoreRecentSpaceActivity()
{
$confluence = new Confluence();
$markdown = file_get_contents($this->dataDir . 'confluence/recent-space-activity-demo.md');
$newMarkdown = $confluence->htmlFile2Markdown($this->dataDir . 'confluence/recent-space-activity-demo.html');
$this->assertEquals(trim($markdown), $newMarkdown);
}
public function testIgnoreSpaceContributors()
{
$confluence = new Confluence();
$markdown = file_get_contents($this->dataDir . 'confluence/space-contributors-demo.md');
$newMarkdown = $confluence->htmlFile2Markdown($this->dataDir . 'confluence/space-contributors-demo.html');
$this->assertEquals(trim($markdown), $newMarkdown);
}
public function testIgnoreUserLink()
{
$confluence = new Confluence();
$markdown = file_get_contents($this->dataDir . 'confluence/userlink-demo.md');
$newMarkdown = $confluence->htmlFile2Markdown($this->dataDir . 'confluence/userlink-demo.html');
$this->assertEquals(trim($markdown), $newMarkdown);
}
}