[CONTROLLER][UserPanel] Make function names camelCase

This commit is contained in:
Hugo Sales 2021-11-16 13:15:48 +00:00
parent 7e4a971fac
commit c68d7ae406
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
2 changed files with 7 additions and 8 deletions

View File

@ -77,7 +77,7 @@ class UserPanel extends Controller
public function allSettings(Request $request): array
{
$account_form = $this->account($request);
$personal_form = $this->personal_info($request);
$personal_form = $this->personalInfo($request);
$notifications_form_array = $this->notifications($request);
return [
@ -92,7 +92,7 @@ class UserPanel extends Controller
/**
* Local user personal information panel
*/
public function personal_info(Request $request)
public function personalInfo(Request $request)
{
$user = Common::ensureLoggedIn();
$actor = $user->getActor();

View File

@ -33,8 +33,8 @@ class UserPanelTest extends GNUsocialTestCase
use AssertThrows;
/**
* @covers \App\Controller\UserPanel::all_settings
* @covers \App\Controller\UserPanel::personal_info
* @covers \App\Controller\UserPanel::allSettings
* @covers \App\Controller\UserPanel::personalInfo
*/
public function testPersonalInfo()
{
@ -67,7 +67,7 @@ class UserPanelTest extends GNUsocialTestCase
/**
* @covers \App\Controller\UserPanel::account
* @covers \App\Controller\UserPanel::all_settings
* @covers \App\Controller\UserPanel::allSettings
*/
public function testAccount()
{
@ -90,13 +90,12 @@ class UserPanelTest extends GNUsocialTestCase
static::assertSame($changed_user->getOutgoingEmail(), 'outgoing@provider');
static::assertSame($changed_user->getIncomingEmail(), 'incoming@provider');
static::assertTrue($changed_user->checkPassword('this is some test password'));
static::assertSame($changed_user->getLanguage(), 'pt');
static::assertSame($changed_user->getPhoneNumber()->getNationalNumber(), '908555842');
}
/**
* @covers \App\Controller\UserPanel::account
* @covers \App\Controller\UserPanel::all_settings
* @covers \App\Controller\UserPanel::allSettings
*/
public function testAccountWrongPassword()
{
@ -116,7 +115,7 @@ class UserPanelTest extends GNUsocialTestCase
}
/**
* @covers \App\Controller\UserPanel::all_settings
* @covers \App\Controller\UserPanel::allSettings
* @covers \App\Controller\UserPanel::notifications
*/
public function testNotifications()