summaryrefslogtreecommitdiffstats
path: root/tests/Unit/Controller/UserApiControllerTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Controller/UserApiControllerTest.php')
-rw-r--r--tests/Unit/Controller/UserApiControllerTest.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/Unit/Controller/UserApiControllerTest.php b/tests/Unit/Controller/UserApiControllerTest.php
index d9df73fe7..dd0140c81 100644
--- a/tests/Unit/Controller/UserApiControllerTest.php
+++ b/tests/Unit/Controller/UserApiControllerTest.php
@@ -33,7 +33,7 @@ class UserApiControllerTest extends TestCase
private $user;
private $file;
- protected function setUp()
+ protected function setUp(): void
{
$this->appName = 'news';
$this->request = $this->getMockBuilder(IRequest::class)
@@ -59,7 +59,7 @@ class UserApiControllerTest extends TestCase
}
- private function expectUser($uid, $displayName, $lastLogin)
+ private function expectUser($uid, $displayName, $lastLogin)
{
$this->userSession->expects($this->any())
->method('getUser')
@@ -75,7 +75,7 @@ class UserApiControllerTest extends TestCase
->will($this->returnValue($displayName));
}
- private function expectImg($isJpg, $isPng, $user, $exists, $data)
+ private function expectImg($isJpg, $isPng, $user, $exists, $data)
{
$jpg = '/' . $user . '/' . 'avatar.jpg';
$png = '/' . $user . '/' . 'avatar.png';
@@ -98,7 +98,7 @@ class UserApiControllerTest extends TestCase
->will($this->returnValue($data));
}
- public function testGetJpeg()
+ public function testGetJpeg()
{
$this->expectUser('john', 'John', 123);
$this->expectImg(true, false, 'john', true, 'hi');
@@ -117,7 +117,7 @@ class UserApiControllerTest extends TestCase
$this->assertEquals($expected, $result);
}
- public function testGetPng()
+ public function testGetPng()
{
$this->expectUser('john', 'John', 123);
$this->expectImg(false, true, 'john', false, 'hi');
@@ -136,7 +136,7 @@ class UserApiControllerTest extends TestCase
$this->assertEquals($expected, $result);
}
- public function testNoAvatar()
+ public function testNoAvatar()
{
$this->expectUser('john', 'John', 123);
$this->expectImg(false, false, 'john', false, 'hi');