summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-07 19:29:49 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit0fdd88df550dcac8ce2727461e1810c25021e6eb (patch)
treeb5640ecee055a727d2873de1c98bf42b394586f3 /tests
parenta754b437e08d6ee387a8d2ce9839cce78af17510 (diff)
🧹 ShareService: rename $url to $urlGenerator
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/Unit/Service/ShareServiceTest.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/Unit/Service/ShareServiceTest.php b/tests/Unit/Service/ShareServiceTest.php
index d9e836a18..9dd49484d 100644
--- a/tests/Unit/Service/ShareServiceTest.php
+++ b/tests/Unit/Service/ShareServiceTest.php
@@ -50,7 +50,7 @@ class ShareServiceTest extends TestCase
/**
* @var MockObject|IURLGenerator
*/
- private $url;
+ private $urlGenerator;
/**
* @var MockObject|IL10N
@@ -88,7 +88,7 @@ class ShareServiceTest extends TestCase
->getMockBuilder(FeedServiceV2::class)
->disableOriginalConstructor()
->getMock();
- $this->url = $this
+ $this->urlGenerator = $this
->getMockBuilder(IURLGenerator::class)
->disableOriginalConstructor()
->getMock();
@@ -101,7 +101,7 @@ class ShareServiceTest extends TestCase
$this->class = new ShareService(
$this->feedService,
$this->itemService,
- $this->url,
+ $this->urlGenerator,
$this->l,
$this->logger
);
@@ -150,7 +150,7 @@ class ShareServiceTest extends TestCase
->with($this->uid, $itemId)
->will($this->returnValue($item));
- $this->url->expects($this->once())
+ $this->urlGenerator->expects($this->once())
->method('getBaseUrl')
->will($this->returnValue('http://serverurl'));
@@ -209,7 +209,7 @@ class ShareServiceTest extends TestCase
->with($this->uid, $itemId)
->will($this->returnValue($item));
- $this->url->expects($this->once())
+ $this->urlGenerator->expects($this->once())
->method('getBaseUrl')
->will($this->returnValue('http://serverurl'));