diff --git a/src/Controller/UserPanel.php b/src/Controller/UserPanel.php index cc758bd204..063b20dc65 100644 --- a/src/Controller/UserPanel.php +++ b/src/Controller/UserPanel.php @@ -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(); diff --git a/tests/Controller/UserPanelTest.php b/tests/Controller/UserPanelTest.php index 344ffc5f4c..c42cf32f7e 100644 --- a/tests/Controller/UserPanelTest.php +++ b/tests/Controller/UserPanelTest.php @@ -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()