diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/units/ExternalLink/AttachmentLinkProviderTest.php | 12 | ||||
-rw-r--r-- | tests/units/ExternalLink/WebLinkProviderTest.php | 4 | ||||
-rw-r--r-- | tests/units/ExternalLink/WebLinkTest.php | 4 | ||||
-rw-r--r-- | tests/units/Model/TaskExternalLinkTest.php | 14 |
4 files changed, 17 insertions, 17 deletions
diff --git a/tests/units/ExternalLink/AttachmentLinkProviderTest.php b/tests/units/ExternalLink/AttachmentLinkProviderTest.php index fe374664..9f56629e 100644 --- a/tests/units/ExternalLink/AttachmentLinkProviderTest.php +++ b/tests/units/ExternalLink/AttachmentLinkProviderTest.php @@ -28,13 +28,13 @@ class AttachmentLinkProviderTest extends Base { $attachmentLinkProvider = new AttachmentLinkProvider($this->container); - $attachmentLinkProvider->setUserTextInput('http://kanboard.net/FILE.DOC'); + $attachmentLinkProvider->setUserTextInput('https://kanboard.net/FILE.DOC'); $this->assertTrue($attachmentLinkProvider->match()); - $attachmentLinkProvider->setUserTextInput('http://kanboard.net/folder/document.PDF'); + $attachmentLinkProvider->setUserTextInput('https://kanboard.net/folder/document.PDF'); $this->assertTrue($attachmentLinkProvider->match()); - $attachmentLinkProvider->setUserTextInput('http://kanboard.net/archive.zip'); + $attachmentLinkProvider->setUserTextInput('https://kanboard.net/archive.zip'); $this->assertTrue($attachmentLinkProvider->match()); $attachmentLinkProvider->setUserTextInput(' https://kanboard.net/folder/archive.tar '); @@ -46,13 +46,13 @@ class AttachmentLinkProviderTest extends Base $attachmentLinkProvider->setUserTextInput(''); $this->assertFalse($attachmentLinkProvider->match()); - $attachmentLinkProvider->setUserTextInput('http://kanboard.net/folder/document.html'); + $attachmentLinkProvider->setUserTextInput('https://kanboard.net/folder/document.html'); $this->assertFalse($attachmentLinkProvider->match()); - $attachmentLinkProvider->setUserTextInput('http://kanboard.net/folder/DOC.HTML'); + $attachmentLinkProvider->setUserTextInput('https://kanboard.net/folder/DOC.HTML'); $this->assertFalse($attachmentLinkProvider->match()); - $attachmentLinkProvider->setUserTextInput('http://kanboard.net/folder/document.do'); + $attachmentLinkProvider->setUserTextInput('https://kanboard.net/folder/document.do'); $this->assertFalse($attachmentLinkProvider->match()); } diff --git a/tests/units/ExternalLink/WebLinkProviderTest.php b/tests/units/ExternalLink/WebLinkProviderTest.php index 95110ed8..8fc5766f 100644 --- a/tests/units/ExternalLink/WebLinkProviderTest.php +++ b/tests/units/ExternalLink/WebLinkProviderTest.php @@ -28,10 +28,10 @@ class WebLinkProviderTest extends Base { $webLinkProvider = new WebLinkProvider($this->container); - $webLinkProvider->setUserTextInput('http://kanboard.net/'); + $webLinkProvider->setUserTextInput('https://kanboard.net/'); $this->assertTrue($webLinkProvider->match()); - $webLinkProvider->setUserTextInput('http://kanboard.net/mypage'); + $webLinkProvider->setUserTextInput('https://kanboard.net/mypage'); $this->assertTrue($webLinkProvider->match()); $webLinkProvider->setUserTextInput(' https://kanboard.net/ '); diff --git a/tests/units/ExternalLink/WebLinkTest.php b/tests/units/ExternalLink/WebLinkTest.php index 85487e15..54046006 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 = 'http://kanboard.net/something'; + $url = 'https://kanboard.net/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 = 'http://kanboard.net/something'; + $url = 'https://kanboard.net/something'; $html = '<!DOCTYPE html><html><head></head><body>Test</body></html>'; $webLink = new WebLink($this->container); diff --git a/tests/units/Model/TaskExternalLinkTest.php b/tests/units/Model/TaskExternalLinkTest.php index 28ccab83..3a79ff82 100644 --- a/tests/units/Model/TaskExternalLinkTest.php +++ b/tests/units/Model/TaskExternalLinkTest.php @@ -18,12 +18,12 @@ class TaskExternalLinkTest extends Base $this->assertEquals(1, $projectModel->create(array('name' => 'Test'))); $this->assertEquals(1, $taskCreationModel->create(array('title' => 'Test', 'project_id' => 1))); - $this->assertEquals(1, $taskExternalLinkModel->create(array('task_id' => 1, 'id' => '', 'url' => 'http://kanboard.net/', 'title' => 'My website', 'link_type' => 'weblink', 'dependency' => 'related'))); + $this->assertEquals(1, $taskExternalLinkModel->create(array('task_id' => 1, 'id' => '', 'url' => 'https://kanboard.net/', 'title' => 'My website', 'link_type' => 'weblink', 'dependency' => 'related'))); $link = $taskExternalLinkModel->getById(1); $this->assertNotEmpty($link); $this->assertEquals('My website', $link['title']); - $this->assertEquals('http://kanboard.net/', $link['url']); + $this->assertEquals('https://kanboard.net/', $link['url']); $this->assertEquals('related', $link['dependency']); $this->assertEquals('weblink', $link['link_type']); $this->assertEquals(0, $link['creator_id']); @@ -41,12 +41,12 @@ class TaskExternalLinkTest extends Base $this->assertEquals(1, $projectModel->create(array('name' => 'Test'))); $this->assertEquals(1, $taskCreationModel->create(array('title' => 'Test', 'project_id' => 1))); - $this->assertEquals(1, $taskExternalLinkModel->create(array('task_id' => 1, 'id' => '', 'url' => 'http://kanboard.net/', 'title' => 'My website', 'link_type' => 'weblink', 'dependency' => 'related'))); + $this->assertEquals(1, $taskExternalLinkModel->create(array('task_id' => 1, 'id' => '', 'url' => 'https://kanboard.net/', 'title' => 'My website', 'link_type' => 'weblink', 'dependency' => 'related'))); $link = $taskExternalLinkModel->getById(1); $this->assertNotEmpty($link); $this->assertEquals('My website', $link['title']); - $this->assertEquals('http://kanboard.net/', $link['url']); + $this->assertEquals('https://kanboard.net/', $link['url']); $this->assertEquals('related', $link['dependency']); $this->assertEquals('weblink', $link['link_type']); $this->assertEquals(1, $link['creator_id']); @@ -62,7 +62,7 @@ class TaskExternalLinkTest extends Base $this->assertEquals(1, $projectModel->create(array('name' => 'Test'))); $this->assertEquals(1, $taskCreationModel->create(array('title' => 'Test', 'project_id' => 1))); - $this->assertEquals(1, $taskExternalLinkModel->create(array('task_id' => 1, 'id' => '', 'url' => 'http://kanboard.net/', 'title' => 'My website', 'link_type' => 'weblink', 'dependency' => 'related'))); + $this->assertEquals(1, $taskExternalLinkModel->create(array('task_id' => 1, 'id' => '', 'url' => 'https://kanboard.net/', 'title' => 'My website', 'link_type' => 'weblink', 'dependency' => 'related'))); sleep(1); @@ -82,7 +82,7 @@ class TaskExternalLinkTest extends Base $this->assertEquals(1, $projectModel->create(array('name' => 'Test'))); $this->assertEquals(1, $taskCreationModel->create(array('title' => 'Test', 'project_id' => 1))); - $this->assertEquals(1, $taskExternalLinkModel->create(array('task_id' => 1, 'id' => '', 'url' => 'http://kanboard.net/', 'title' => 'My website', 'link_type' => 'weblink', 'dependency' => 'related'))); + $this->assertEquals(1, $taskExternalLinkModel->create(array('task_id' => 1, 'id' => '', 'url' => 'https://kanboard.net/', 'title' => 'My website', 'link_type' => 'weblink', 'dependency' => 'related'))); $this->assertTrue($taskExternalLinkModel->remove(1)); $this->assertFalse($taskExternalLinkModel->remove(1)); @@ -105,7 +105,7 @@ class TaskExternalLinkTest extends Base $this->assertEquals(1, $projectModel->create(array('name' => 'Test'))); $this->assertEquals(1, $taskCreationModel->create(array('title' => 'Test', 'project_id' => 1))); $this->assertEquals(1, $taskExternalLinkModel->create(array('task_id' => 1, 'url' => 'https://miniflux.net/', 'title' => 'MX', 'link_type' => 'weblink', 'dependency' => 'related'))); - $this->assertEquals(2, $taskExternalLinkModel->create(array('task_id' => 1, 'url' => 'http://kanboard.net/', 'title' => 'KB', 'link_type' => 'weblink', 'dependency' => 'related'))); + $this->assertEquals(2, $taskExternalLinkModel->create(array('task_id' => 1, 'url' => 'https://kanboard.net/', 'title' => 'KB', 'link_type' => 'weblink', 'dependency' => 'related'))); $links = $taskExternalLinkModel->getAll(1); $this->assertCount(2, $links); |