forked from GNUsocial/gnu-social
[CONTROLLER][UserPanel] Make function names camelCase
This commit is contained in:
parent
7e4a971fac
commit
c68d7ae406
@ -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();
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user