diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-07 12:32:47 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-07 12:32:47 -0500 |
commit | b34e151d6a9f2d18d8f3baea3bcbae97abee4cc8 (patch) | |
tree | 8e779c1a4e79d539223b609d0c92a772a891d185 /tests/units/ExternalLink/WebLinkTest.php | |
parent | 7b9e8897ebbebe4dfca596aa9bdb7ae81ab3f147 (diff) |
Use mock object instead of FakeHttpClient class
Diffstat (limited to 'tests/units/ExternalLink/WebLinkTest.php')
-rw-r--r-- | tests/units/ExternalLink/WebLinkTest.php | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/tests/units/ExternalLink/WebLinkTest.php b/tests/units/ExternalLink/WebLinkTest.php index 0644620f..85487e15 100644 --- a/tests/units/ExternalLink/WebLinkTest.php +++ b/tests/units/ExternalLink/WebLinkTest.php @@ -12,12 +12,6 @@ class WebLinkTest extends Base $title = 'My title'; $html = '<!DOCTYPE html><html><head><title> '.$title.' </title></head><body>Test</body></html>'; - $this->container['httpClient'] = $this - ->getMockBuilder('\Kanboard\Core\Http\Client') - ->setConstructorArgs(array($this->container)) - ->setMethods(array('get')) - ->getMock(); - $webLink = new WebLink($this->container); $webLink->setUrl($url); $this->assertEquals($url, $webLink->getUrl()); @@ -36,12 +30,6 @@ class WebLinkTest extends Base $url = 'http://kanboard.net/something'; $html = '<!DOCTYPE html><html><head></head><body>Test</body></html>'; - $this->container['httpClient'] = $this - ->getMockBuilder('\Kanboard\Core\Http\Client') - ->setConstructorArgs(array($this->container)) - ->setMethods(array('get')) - ->getMock(); - $webLink = new WebLink($this->container); $webLink->setUrl($url); $this->assertEquals($url, $webLink->getUrl()); |