PHP CS Fixer v2.18 (#752)

* php_unit_method_casing

* PHP-CS-Fixer v2.18

* php-cs-fixer v2.18

* Update validation.php
pull/756/head
Kei 3 years ago committed by GitHub
parent 72b35e24f9
commit 68eb063948
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,6 +1,6 @@
<?php
// PHP-CS-Fixer v2.16
// PHP-CS-Fixer v2.18
// Based on https://docs.styleci.io/presets#laravel
$rules = [
'@Symfony' => true,

@ -31,7 +31,7 @@
"require-dev": {
"facade/ignition": "^2.5",
"fakerphp/faker": "^1.9.1",
"friendsofphp/php-cs-fixer": "^2.16",
"friendsofphp/php-cs-fixer": "2.18.*",
"laravel/dusk": "^6.6",
"mockery/mockery": "^1.4",
"nunomaduro/collision": "^5.0",

2
composer.lock generated

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "4d75e5f3df39076e34d96135975eb2b1",
"content-hash": "31988438254bf8bcceb1830d7b4b3e64",
"packages": [
{
"name": "asm89/stack-cors",

@ -23,7 +23,7 @@ return [
'array' => 'The :attribute must be an array.',
'before' => 'The :attribute must be a date before :date.',
'before_or_equal' => 'The :attribute must be a date before or equal to :date.',
'between' => [
'between' => [
'numeric' => 'The :attribute must be between :min and :max.',
'file' => 'The :attribute must be between :min and :max kilobytes.',
'string' => 'The :attribute must be between :min and :max characters.',
@ -44,7 +44,7 @@ return [
'exists' => 'The selected :attribute is invalid.',
'file' => 'The :attribute must be a file.',
'filled' => 'The :attribute field must have a value.',
'gt' => [
'gt' => [
'numeric' => 'The :attribute must be greater than :value.',
'file' => 'The :attribute must be greater than :value kilobytes.',
'string' => 'The :attribute must be greater than :value characters.',
@ -64,7 +64,7 @@ return [
'ipv4' => 'The :attribute must be a valid IPv4 address.',
'ipv6' => 'The :attribute must be a valid IPv6 address.',
'json' => 'The :attribute must be a valid JSON string.',
'lt' => [
'lt' => [
'numeric' => 'The :attribute must be less than :value.',
'file' => 'The :attribute must be less than :value kilobytes.',
'string' => 'The :attribute must be less than :value characters.',
@ -84,7 +84,7 @@ return [
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.',
@ -108,7 +108,7 @@ return [
'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
'same' => 'The :attribute and :other must match.',
'size' => [
'size' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',
'string' => 'The :attribute must be :size characters.',

@ -11,7 +11,7 @@ class UrlTest extends TestCase
* @test
* @group f-api
*/
public function can_create_url()
public function canCreateUrl()
{
$data = [
'long_url' => 'http://example.com',

@ -10,7 +10,7 @@ class ConfirmPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function user_can_view_password_confirm()
public function userCanViewPasswordConfirm()
{
$response = $this->loginAsNonAdmin()->get(route('password.confirm'));
@ -23,7 +23,7 @@ class ConfirmPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function guest_cant_view_password_confirm()
public function guestCantViewPasswordConfirm()
{
$response = $this->get(route('password.confirm'));

@ -30,7 +30,7 @@ class ForgotPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function user_can_view_an_email_password_form()
public function userCanViewAnEmailPasswordForm()
{
$response = $this->get($this->requestRoute());
@ -43,7 +43,7 @@ class ForgotPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function user_receives_an_email_with_a_password_reset_link()
public function userReceivesAnEmailWithAPasswordResetLink()
{
Notification::fake();
@ -65,7 +65,7 @@ class ForgotPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function user_does_not_receive_email_when_not_registered()
public function userDoesNotReceiveEmailWhenNotRegistered()
{
Notification::fake();
@ -83,7 +83,7 @@ class ForgotPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function email_is_required()
public function emailIsRequired()
{
$response = $this->from($this->getRoute())->post($this->postRoute(), []);
@ -96,7 +96,7 @@ class ForgotPasswordTest extends TestCase
* @test
* @group f-api
*/
public function email_is_a_valid_email()
public function emailIsAValidEmail()
{
$response = $this->from($this->getRoute())->post($this->postRoute(), [
'email' => 'invalid-email',

@ -32,7 +32,7 @@ class LoginTest extends TestCase
* @test
* @group f-auth
*/
public function user_can_view_a_login_form()
public function userCanViewALoginForm()
{
$response = $this->get($this->getRoute());
@ -45,7 +45,7 @@ class LoginTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_view_a_login_form_when_authenticated()
public function userCannotViewALoginFormWhenAuthenticated()
{
$response = $this->loginAsNonAdmin()->get($this->getRoute());
@ -56,7 +56,7 @@ class LoginTest extends TestCase
* @test
* @group f-auth
*/
public function user_can_login_with_correct_credentials()
public function userCanLoginWithCorrectCredentials()
{
$user = User::factory()->create([
'password' => Hash::make($password = 'i-love-laravel'),
@ -75,7 +75,7 @@ class LoginTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_login_with_incorrect_password()
public function userCannotLoginWithIncorrectPassword()
{
$user = User::factory()->create([
'password' => Hash::make('i-love-laravel'),
@ -99,7 +99,7 @@ class LoginTest extends TestCase
* @test
* @group f-auth
*/
public function unauthenticated_users_cant_access_the_dashboard()
public function unauthenticatedUsersCantAccessTheDashboard()
{
$this->get('/admin')->assertRedirect('/login');
}
@ -108,7 +108,7 @@ class LoginTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_login_with_email_that_does_not_exist()
public function userCannotLoginWithEmailThatDoesNotExist()
{
$response = $this->from($this->getRoute())->post($this->postRoute(), [
'identity' => 'nobody@example.com',

@ -34,7 +34,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function user_can_view_a_registration_form()
public function userCanViewARegistrationForm()
{
$response = $this->get($this->getRoute());
@ -47,7 +47,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_view_a_registration_form_when_authenticated()
public function userCannotViewARegistrationFormWhenAuthenticated()
{
$response = $this->loginAsNonAdmin()->get($this->getRoute());
@ -58,7 +58,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function user_can_register()
public function userCanRegister()
{
Event::fake();
@ -84,7 +84,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function name_should_not_be_too_long()
public function nameShouldNotBeTooLong()
{
$response = $this->post('/register', [
'name' => str_repeat('a', 51),
@ -99,7 +99,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_register_without_name()
public function userCannotRegisterWithoutName()
{
$response =
$this
@ -125,7 +125,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_register_without_email()
public function userCannotRegisterWithoutEmail()
{
$response =
$this
@ -151,7 +151,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_register_with_invalid_email()
public function userCannotRegisterWithInvalidEmail()
{
$response =
$this
@ -178,7 +178,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function email_should_not_be_too_long()
public function emailShouldNotBeTooLong()
{
$response = $this->post('/register', [
'email' => str_repeat('a', 247).'@test.com', // 256
@ -192,7 +192,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_register_without_password()
public function userCannotRegisterWithoutPassword()
{
$response =
$this
@ -219,7 +219,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_register_without_password_confirmation()
public function userCannotRegisterWithoutPasswordConfirmation()
{
$response =
$this
@ -246,7 +246,7 @@ class RegisterTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_register_with_passwords_not_matching()
public function userCannotRegisterWithPasswordsNotMatching()
{
$response =
$this

@ -40,7 +40,7 @@ class ResetPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function user_can_view_a_password_reset_form()
public function userCanViewAPasswordResetForm()
{
$response = $this->get($this->getRoute($token = $this->getValidToken($this->nonAdmin())));
@ -54,7 +54,7 @@ class ResetPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function user_can_reset_password_with_valid_token()
public function userCanResetPasswordWithValidToken()
{
Event::fake();
@ -80,7 +80,7 @@ class ResetPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_reset_password_with_invalid_token()
public function userCannotResetPasswordWithInvalidToken()
{
$user = User::factory()->create([
'password' => Hash::make('old-password'),
@ -106,7 +106,7 @@ class ResetPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_reset_password_without_providing_a_new_password()
public function userCannotResetPasswordWithoutProvidingANewPassword()
{
$user = User::factory()->create([
'password' => Hash::make('old-password'),
@ -137,7 +137,7 @@ class ResetPasswordTest extends TestCase
* @test
* @group f-auth
*/
public function user_cannot_reset_password_without_providing_an_email()
public function userCannotResetPasswordWithoutProvidingAnEmail()
{
$user = User::factory()->create([
'password' => Hash::make('old-password'),

@ -25,7 +25,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-dashboard
*/
public function d_can_access_page()
public function dCanAccessPage()
{
$this->loginAsAdmin();
@ -37,7 +37,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-dashboard
*/
public function d_can_delete()
public function dCanDelete()
{
$url = Url::factory()->create([
'user_id' => $this->admin()->id,
@ -61,7 +61,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-dashboard
*/
public function d_can_duplicate()
public function dCanDuplicate()
{
$url = Url::factory()->create([
'user_id' => $this->admin()->id,
@ -85,7 +85,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-dashboard
*/
public function d_authorized_user_can_access_edit_url_page()
public function dAuthorizedUserCanAccessEditUrlPage()
{
$url = Url::factory()->create([
'user_id' => $this->admin()->id,
@ -101,7 +101,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-dashboard
*/
public function d_can_update_url()
public function dCanUpdateUrl()
{
$url = Url::factory()->create([
'user_id' => $this->admin()->id,
@ -136,7 +136,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-allurl
*/
public function au_admin_can_access_this_page()
public function auAdminCanAccessThisPage()
{
$this->loginAsAdmin();
@ -148,7 +148,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-allurl
*/
public function au_non_admin_cant_access_this_page()
public function auNonAdminCantAccessThisPage()
{
$this->loginAsNonAdmin();
@ -160,7 +160,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-allurl
*/
public function au_admin_can_delete()
public function auAdminCanDelete()
{
$url = Url::factory()->create();
@ -180,7 +180,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-allurl
*/
public function au_non_admin_cant_delete()
public function auNonAdminCantDelete()
{
$url = Url::factory()->create();
@ -205,7 +205,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-alluser
*/
public function aus_admin_can_access_this_page()
public function ausAdminCanAccessThisPage()
{
$this->loginAsAdmin();
@ -217,7 +217,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-alluser
*/
public function aus_non_admin_cant_access_this_page()
public function ausNonAdminCantAccessThisPage()
{
$this->loginAsNonAdmin();
@ -235,7 +235,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-stat
*/
public function stat_admin_can_access_this_page()
public function statAdminCanAccessThisPage()
{
$this->loginAsAdmin();
@ -247,7 +247,7 @@ class UrlBeTest extends TestCase
* @test
* @group f-stat
*/
public function stat_non_admin_cant_access_this_page()
public function statNonAdminCantAccessThisPage()
{
$this->loginAsNonAdmin();

@ -30,7 +30,7 @@ class UrlFeTest extends TestCase
*
* @test
*/
public function create_cst()
public function createCst()
{
$longUrl = 'https://laravel.com';
$customKey = 'laravel';
@ -47,7 +47,7 @@ class UrlFeTest extends TestCase
*
* @test
*/
public function create_cst_2()
public function createCst2()
{
$this->loginAsAdmin();
@ -66,7 +66,7 @@ class UrlFeTest extends TestCase
*
* @test
*/
public function long_url_already_exist()
public function longUrlAlreadyExist()
{
$url = Url::factory()->create([
'user_id' => null,
@ -88,7 +88,7 @@ class UrlFeTest extends TestCase
*
* @test
*/
public function long_url_already_exist_2()
public function longUrlAlreadyExist2()
{
$url = Url::factory()->create();
@ -108,7 +108,7 @@ class UrlFeTest extends TestCase
*
* @test
*/
public function long_url_already_exist_3()
public function longUrlAlreadyExist3()
{
$user = $this->admin();
@ -134,7 +134,7 @@ class UrlFeTest extends TestCase
*
* @test
*/
public function long_url_already_exist_4()
public function longUrlAlreadyExist4()
{
$user = $this->admin();
$user2 = $this->nonAdmin();
@ -161,7 +161,7 @@ class UrlFeTest extends TestCase
*
* @test
*/
public function long_url_already_exist_5()
public function longUrlAlreadyExist5()
{
$user = $this->admin();
@ -202,7 +202,7 @@ class UrlFeTest extends TestCase
}
/** @test */
public function create_short_url_with_wrong_url_format()
public function createShortUrlWithWrongUrlFormat()
{
$response = $this->post(route('createshortlink'), [
'long_url' => 'wrong-url-format',
@ -220,7 +220,7 @@ class UrlFeTest extends TestCase
*/
/** @test */
public function cst_long_url_already_exist()
public function cstLongUrlAlreadyExist()
{
$url = Url::factory()->create([
'user_id' => null,
@ -241,7 +241,7 @@ class UrlFeTest extends TestCase
}
/** @test */
public function cst_long_url_already_exist_2()
public function cstLongUrlAlreadyExist2()
{
$url = Url::factory()->create([
'user_id' => null,
@ -267,7 +267,7 @@ class UrlFeTest extends TestCase
}
/** @test */
public function cst_cst_keyword_already_exist()
public function cstCstKeywordAlreadyExist()
{
$url = Url::factory()->create();
@ -288,7 +288,7 @@ class UrlFeTest extends TestCase
*
* @test
*/
public function cst_cst_keyword_already_exist_2()
public function cstCstKeywordAlreadyExist2()
{
$url = Url::factory()->create();

@ -21,7 +21,7 @@ class ChangePasswordTest extends TestCase
* @test
* @group f-user
*/
public function change_password_with_correct_credentials()
public function changePasswordWithCorrectCredentials()
{
$this->loginAsAdmin();
@ -52,7 +52,7 @@ class ChangePasswordTest extends TestCase
* @test
* @group f-user
*/
public function admin_can_change_the_password_of_all_users()
public function adminCanChangeThePasswordOfAllUsers()
{
$this->loginAsAdmin();
@ -83,7 +83,7 @@ class ChangePasswordTest extends TestCase
* @test
* @group f-user
*/
public function current_password_does_not_match()
public function currentPasswordDoesNotMatch()
{
$this->loginAsAdmin();
@ -115,7 +115,7 @@ class ChangePasswordTest extends TestCase
* @group f-user
* @dataProvider newPasswordFailProvider
*/
public function new_password_validate_fail($data1, $data2)
public function newPasswordValidateFail($data1, $data2)
{
$this->loginAsAdmin();

@ -21,7 +21,7 @@ class ProfileTest extends TestCase
* @test
* @group f-user
*/
public function users_can_access_their_own_profile_page()
public function usersCanAccessTheirOwnProfilePage()
{
$this->loginAsAdmin();
@ -33,7 +33,7 @@ class ProfileTest extends TestCase
* @test
* @group f-user
*/
public function admin_can_access_other_users_profile_pages()
public function adminCanAccessOtherUsersProfilePages()
{
$this->loginAsAdmin();
@ -45,7 +45,7 @@ class ProfileTest extends TestCase
* @test
* @group f-user
*/
public function non_admin_cant_access_other_users_profile_pages()
public function nonAdminCantAccessOtherUsersProfilePages()
{
$this->loginAsNonAdmin();
@ -57,7 +57,7 @@ class ProfileTest extends TestCase
* @test
* @group f-user
*/
public function admin_can_change_other_users_email()
public function adminCanChangeOtherUsersEmail()
{
$this->loginAsAdmin();
@ -81,7 +81,7 @@ class ProfileTest extends TestCase
* @test
* @group f-user
*/
public function non_admin_cant_change_other_users_email()
public function nonAdminCantChangeOtherUsersEmail()
{
$this->loginAsNonAdmin();
@ -102,7 +102,7 @@ class ProfileTest extends TestCase
* @test
* @group f-user
*/
public function validation_email_required()
public function validationEmailRequired()
{
$this->loginAsAdmin();
@ -124,7 +124,7 @@ class ProfileTest extends TestCase
* @test
* @group f-user
*/
public function validation_email_invalid_format()
public function validationEmailInvalidFormat()
{
$this->loginAsAdmin();
@ -146,7 +146,7 @@ class ProfileTest extends TestCase
* @test
* @group f-user
*/
public function validation_email_max_length()
public function validationEmailMaxLength()
{
$this->loginAsAdmin();
@ -169,7 +169,7 @@ class ProfileTest extends TestCase
* @test
* @group f-user
*/
public function validation_email_unique()
public function validationEmailUnique()
{
$this->loginAsAdmin();

@ -18,7 +18,7 @@ class UrlControllerTest extends TestCase
* @test
* @group u-controller
*/
public function shortenUrl_user_id()
public function shortenUrlUserId()
{
$longUrl = 'https://laravel.com';
@ -38,7 +38,7 @@ class UrlControllerTest extends TestCase
* @test
* @group u-controller
*/
public function shortenUrl_user_id_2()
public function shortenUrlUserId2()
{
$user = $this->admin();
$longUrl = 'https://laravel.com';
@ -61,7 +61,7 @@ class UrlControllerTest extends TestCase
* @test
* @group u-controller
*/
public function shortenUrl_not_custom()
public function shortenUrlNotCustom()
{
$longUrl = 'https://laravel.com';
@ -85,7 +85,7 @@ class UrlControllerTest extends TestCase
* @test
* @group u-controller
*/
public function shortenUrl_is_custom()
public function shortenUrlIsCustom()
{
config(['urlhub.hash_length' => 6]);
@ -106,7 +106,7 @@ class UrlControllerTest extends TestCase
* @test
* @group u-controller
*/
public function custom_key_validation_pass()
public function customKeyValidationPass()
{
$response = $this->post(route('home').'/validate-custom-key', [
'keyword' => 'hello',
@ -120,7 +120,7 @@ class UrlControllerTest extends TestCase
* @group u-controller
* @dataProvider customKeyValidationFailProvider
*/
public function custom_key_validation_fail($data)
public function customKeyValidationFail($data)
{
Url::factory()->create([
'keyword' => 'laravel',

@ -12,7 +12,7 @@ class UrlRedirectControllerTest extends TestCase
* @test
* @group u-controller
*/
public function url_redirection()
public function urlRedirection()
{
$url = Url::factory()->create();

@ -9,7 +9,7 @@ class GeneralHelperTest extends TestCase
/**
* @group u-helper
*/
public function test_uHub()
public function testUHub()
{
$expected = config('urlhub.hash_length');
$actual = uHub('hash_length');

@ -12,7 +12,7 @@ class UrlHubLinkCheckerTest extends TestCase
*
* @test
*/
public function keyRemaining_zero()
public function keyRemainingZero()
{
config(['urlhub.hash_length' => 0]);

@ -32,7 +32,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function belongs_to_user()
public function belongsToUser()
{
$url = Url::factory()->create([
'user_id' => $this->admin()->id,
@ -45,7 +45,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function default_guest_name()
public function defaultGuestName()
{
$url = Url::factory()->create([
'user_id' => null,
@ -58,7 +58,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function has_many_url_stat()
public function hasManyUrlStat()
{
$url = Url::factory()->create();
@ -75,7 +75,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function default_guest_id()
public function defaultGuestId()
{
$longUrl = 'https://example.com';
@ -92,7 +92,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function setUserIdAttribute_must_be_null()
public function setUserIdAttributeMustBeNull()
{
$url = Url::factory()->create([
'user_id' => 0,
@ -135,7 +135,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function total_short_url()
public function totalShortUrl()
{
$this->assertSame(
3,
@ -147,7 +147,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function total_short_url_by_me()
public function totalShortUrlByMe()
{
$this->assertSame(
1,
@ -159,7 +159,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function total_short_url_by_guest()
public function totalShortUrlByGuest()
{
$this->assertSame(
2,
@ -171,7 +171,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function total_clicks()
public function totalClicks()
{
$this->assertSame(
30,
@ -183,7 +183,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function total_clicks_by_me()
public function totalClicksByMe()
{
$this->assertSame(
10,
@ -197,7 +197,7 @@ class UrlTest extends TestCase
* @test
* @group u-model
*/
public function total_clicks_by_guest()
public function totalClicksByGuest()
{
$this->assertSame(
20,

@ -12,7 +12,7 @@ class UserTest extends TestCase
* @test
* @group u-model
*/
public function has_many_url()
public function hasManyUrl()
{
$user = User::factory()->create();

@ -12,7 +12,7 @@ class VisitTest extends TestCase
* @test
* @group u-model
*/
public function belongs_to_url()
public function belongsToUrl()
{
$visit = Visit::factory()->create([
'url_id' => function () {

@ -13,7 +13,7 @@ class UrlPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function force_delete_admin()
public function forceDeleteAdmin()
{
$this->loginAsAdmin();
@ -33,7 +33,7 @@ class UrlPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function force_delete_non_admin()
public function forceDeleteNonAdmin()
{
$this->loginAsNonAdmin();

@ -13,7 +13,7 @@ class UserPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function view_admin()
public function viewAdmin()
{
$this->loginAsAdmin();
@ -29,7 +29,7 @@ class UserPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function view_non_admin()
public function viewNonAdmin()
{
$this->loginAsNonAdmin();
@ -45,7 +45,7 @@ class UserPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function update_admin()
public function updateAdmin()
{
$this->loginAsAdmin();
@ -61,7 +61,7 @@ class UserPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function update_non_admin()
public function updateNonAdmin()
{
$this->loginAsNonAdmin();
@ -77,7 +77,7 @@ class UserPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function updatePass_admin()
public function updatePassAdmin()
{
$this->loginAsAdmin();
@ -93,7 +93,7 @@ class UserPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function updatePass_non_admin()
public function updatePassNonAdmin()
{
$this->loginAsNonAdmin();
@ -115,7 +115,7 @@ class UserPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function admin_can_access_change_password_page()
public function adminCanAccessChangePasswordPage()
{
$this->loginAsAdmin();
@ -127,7 +127,7 @@ class UserPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function non_admin_cant_access_change_password_page()
public function nonAdminCantAccessChangePasswordPage()
{
$this->loginAsNonAdmin();
@ -136,7 +136,7 @@ class UserPolicyTest extends TestCase
}
/** @test */
public function users_can_access_their_own_change_password_page()
public function usersCanAccessTheirOwnChangePasswordPage()
{
$this->loginAsAdmin();
@ -152,7 +152,7 @@ class UserPolicyTest extends TestCase
* @test
* @group u-policy
*/
public function admin_can_access_all_users_page()
public function adminCanAccessAllUsersPage()
{
$this->loginAsAdmin();
@ -163,7 +163,7 @@ class UserPolicyTest extends TestCase
/**
* @test
*/
public function non_admin_cant_access_all_users_page()
public function nonAdminCantAccessAllUsersPage()
{
$this->loginAsNonAdmin();

@ -17,7 +17,7 @@ class StringTest extends TestCase
* @test
* @group u-rule
*/
public function StrAlphaUnderscoret()
public function strAlphaUnderscoret()
{
$rule = new StrAlphaUnderscore();
@ -29,7 +29,7 @@ class StringTest extends TestCase
* @test
* @group u-rule
*/
public function StrLowercase()
public function strLowercase()
{
$rule = new StrLowercase();

@ -12,7 +12,7 @@ class ConfigServiceTest extends TestCase
* @group u-service
* @dataProvider hashCharProvider
*/
public function hash_char($value, $expected)
public function hashChar($value, $expected)
{
config(['urlhub.hash_char' => $value]);
@ -37,7 +37,7 @@ class ConfigServiceTest extends TestCase
* @group u-service
* @dataProvider hashLengthProvider
*/
public function hash_length($value, $expected)
public function hashLength($value, $expected)
{
config(['urlhub.hash_length' => $value]);
@ -62,7 +62,7 @@ class ConfigServiceTest extends TestCase
* @group u-service
* @dataProvider redirectStatusCodeProvider
*/
public function redirect_status_code($value, $expected)
public function redirectStatusCode($value, $expected)
{
config(['urlhub.redirect_status_code' => $value]);
@ -88,7 +88,7 @@ class ConfigServiceTest extends TestCase
* @group u-service
* @dataProvider redirectCacheLifetimeProvider
*/
public function redirect_cache_lifetime($value, $expected)
public function redirectCacheLifetime($value, $expected)
{
config(['urlhub.redirect_cache_lifetime' => $value]);

@ -61,7 +61,7 @@ class UrlServiceTest extends TestCase
* @group u-service
* @dataProvider getDomainProvider
*/
public function get_domain($expected, $actutal)
public function getDomain($expected, $actutal)
{
$this->assertEquals($expected, $this->urlSrvc->getDomain($actutal));
}

Loading…
Cancel
Save