summaryrefslogtreecommitdiff
path: root/tests/units/ExternalLink
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units/ExternalLink')
-rw-r--r--tests/units/ExternalLink/AttachmentLinkProviderTest.php14
-rw-r--r--tests/units/ExternalLink/AttachmentLinkTest.php2
-rw-r--r--tests/units/ExternalLink/WebLinkProviderTest.php6
-rw-r--r--tests/units/ExternalLink/WebLinkTest.php6
4 files changed, 14 insertions, 14 deletions
diff --git a/tests/units/ExternalLink/AttachmentLinkProviderTest.php b/tests/units/ExternalLink/AttachmentLinkProviderTest.php
index 9f56629e..531907d7 100644
--- a/tests/units/ExternalLink/AttachmentLinkProviderTest.php
+++ b/tests/units/ExternalLink/AttachmentLinkProviderTest.php
@@ -28,16 +28,16 @@ class AttachmentLinkProviderTest extends Base
{
$attachmentLinkProvider = new AttachmentLinkProvider($this->container);
- $attachmentLinkProvider->setUserTextInput('https://kanboard.net/FILE.DOC');
+ $attachmentLinkProvider->setUserTextInput('https://kanboard.org/FILE.DOC');
$this->assertTrue($attachmentLinkProvider->match());
- $attachmentLinkProvider->setUserTextInput('https://kanboard.net/folder/document.PDF');
+ $attachmentLinkProvider->setUserTextInput('https://kanboard.org/folder/document.PDF');
$this->assertTrue($attachmentLinkProvider->match());
- $attachmentLinkProvider->setUserTextInput('https://kanboard.net/archive.zip');
+ $attachmentLinkProvider->setUserTextInput('https://kanboard.org/archive.zip');
$this->assertTrue($attachmentLinkProvider->match());
- $attachmentLinkProvider->setUserTextInput(' https://kanboard.net/folder/archive.tar ');
+ $attachmentLinkProvider->setUserTextInput(' https://kanboard.org/folder/archive.tar ');
$this->assertTrue($attachmentLinkProvider->match());
$attachmentLinkProvider->setUserTextInput('http:// invalid url');
@@ -46,13 +46,13 @@ class AttachmentLinkProviderTest extends Base
$attachmentLinkProvider->setUserTextInput('');
$this->assertFalse($attachmentLinkProvider->match());
- $attachmentLinkProvider->setUserTextInput('https://kanboard.net/folder/document.html');
+ $attachmentLinkProvider->setUserTextInput('https://kanboard.org/folder/document.html');
$this->assertFalse($attachmentLinkProvider->match());
- $attachmentLinkProvider->setUserTextInput('https://kanboard.net/folder/DOC.HTML');
+ $attachmentLinkProvider->setUserTextInput('https://kanboard.org/folder/DOC.HTML');
$this->assertFalse($attachmentLinkProvider->match());
- $attachmentLinkProvider->setUserTextInput('https://kanboard.net/folder/document.do');
+ $attachmentLinkProvider->setUserTextInput('https://kanboard.org/folder/document.do');
$this->assertFalse($attachmentLinkProvider->match());
}
diff --git a/tests/units/ExternalLink/AttachmentLinkTest.php b/tests/units/ExternalLink/AttachmentLinkTest.php
index 0211869c..f2a5b82c 100644
--- a/tests/units/ExternalLink/AttachmentLinkTest.php
+++ b/tests/units/ExternalLink/AttachmentLinkTest.php
@@ -8,7 +8,7 @@ class AttachmentLinkTest extends Base
{
public function testGetTitleFromUrl()
{
- $url = 'https://kanboard.net/folder/document.pdf';
+ $url = 'https://kanboard.org/folder/document.pdf';
$link = new AttachmentLink($this->container);
$link->setUrl($url);
diff --git a/tests/units/ExternalLink/WebLinkProviderTest.php b/tests/units/ExternalLink/WebLinkProviderTest.php
index 8fc5766f..f7f63484 100644
--- a/tests/units/ExternalLink/WebLinkProviderTest.php
+++ b/tests/units/ExternalLink/WebLinkProviderTest.php
@@ -28,13 +28,13 @@ class WebLinkProviderTest extends Base
{
$webLinkProvider = new WebLinkProvider($this->container);
- $webLinkProvider->setUserTextInput('https://kanboard.net/');
+ $webLinkProvider->setUserTextInput('https://kanboard.org/');
$this->assertTrue($webLinkProvider->match());
- $webLinkProvider->setUserTextInput('https://kanboard.net/mypage');
+ $webLinkProvider->setUserTextInput('https://kanboard.org/mypage');
$this->assertTrue($webLinkProvider->match());
- $webLinkProvider->setUserTextInput(' https://kanboard.net/ ');
+ $webLinkProvider->setUserTextInput(' https://kanboard.org/ ');
$this->assertTrue($webLinkProvider->match());
$webLinkProvider->setUserTextInput('http:// invalid url');
diff --git a/tests/units/ExternalLink/WebLinkTest.php b/tests/units/ExternalLink/WebLinkTest.php
index 54046006..0acad023 100644
--- a/tests/units/ExternalLink/WebLinkTest.php
+++ b/tests/units/ExternalLink/WebLinkTest.php
@@ -8,7 +8,7 @@ class WebLinkTest extends Base
{
public function testGetTitleFromHtml()
{
- $url = 'https://kanboard.net/something';
+ $url = 'https://kanboard.org/something';
$title = 'My title';
$html = '<!DOCTYPE html><html><head><title> '.$title.' </title></head><body>Test</body></html>';
@@ -27,7 +27,7 @@ class WebLinkTest extends Base
public function testGetTitleFromUrl()
{
- $url = 'https://kanboard.net/something';
+ $url = 'https://kanboard.org/something';
$html = '<!DOCTYPE html><html><head></head><body>Test</body></html>';
$webLink = new WebLink($this->container);
@@ -40,6 +40,6 @@ class WebLinkTest extends Base
->with($url)
->will($this->returnValue($html));
- $this->assertEquals('kanboard.net/something', $webLink->getTitle());
+ $this->assertEquals('kanboard.org/something', $webLink->getTitle());
}
}