Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated Laravel #89

Merged
merged 40 commits into from
Aug 26, 2024
Merged

Updated Laravel #89

merged 40 commits into from
Aug 26, 2024

Conversation

aizlee
Copy link
Contributor

@aizlee aizlee commented Aug 15, 2024

  • updated Laravel to 11 version
  • implemeted QueueEnum
  • implemented ModelTestState

@aizlee aizlee requested a review from DenTray August 19, 2024 07:36
@@ -83,25 +84,25 @@ public function logout(LogoutRequest $request): Response
return response('', Response::HTTP_NO_CONTENT)->withCookie($tokenCookie);
}

public function forgotPassword(ForgotPasswordRequest $request, UserService $service): Response
public function forgotPassword(UserService $service, ForgotPasswordRequest $request): Response
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please revert this change

Comment on lines 69 to 72
->update(
where:['id' => $user->id],
data: ['password' => Hash::make($password)]
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
->update(
where:['id' => $user->id],
data: ['password' => Hash::make($password)]
)
->update($user->id, [
'password' => Hash::make($password),
])

artisan Outdated
|
*/
// Register the Composer autoloader...
require __DIR__.'/vendor/autoload.php';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
require __DIR__.'/vendor/autoload.php';
require __DIR__ . '/vendor/autoload.php';

artisan Outdated
Comment on lines 12 to 13
$status = (require_once __DIR__.'/bootstrap/app.php')
->handleCommand(new ArgvInput);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$status = (require_once __DIR__.'/bootstrap/app.php')
->handleCommand(new ArgvInput);
$status = (require_once __DIR__ . '/bootstrap/app.php')->handleCommand(new ArgvInput);

Comment on lines 34 to 37
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
channels: __DIR__.'/../routes/channels.php',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
web: __DIR__.'/../routes/web.php',
api: __DIR__.'/../routes/api.php',
commands: __DIR__.'/../routes/console.php',
channels: __DIR__.'/../routes/channels.php',
web: __DIR__ . '/../routes/web.php',
api: __DIR__ . '/../routes/api.php',
commands: __DIR__ . '/../routes/console.php',
channels: __DIR__ . '/../routes/channels.php',

Comment on lines 306 to 311
$this->assertDatabaseMissing(
table: 'password_reset_tokens',
data: [
'email' => '[email protected]',
],
);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$this->assertDatabaseMissing(
table: 'password_reset_tokens',
data: [
'email' => '[email protected]',
],
);
$this->assertDatabaseMissing('password_reset_tokens', [
'email' => '[email protected]',
]);


$response->assertOk();

$this->assertEqualsFixture('user_created.json', $response->json());

$this->assertDatabaseHas('users', $this->getJsonFixture('user_created_database.json'));
self::$userState->assertChangesEqualsFixture('user_created__users_state.json');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self::$userState->assertChangesEqualsFixture('user_created__users_state.json');
self::$userState->assertChangesEqualsFixture('user_created_users_state.json');


$response->assertNoContent();

$this->assertDatabaseHas('users', $data);
self::$userState->assertChangesEqualsFixture('user_updated__users_state.json');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self::$userState->assertChangesEqualsFixture('user_updated__users_state.json');
self::$userState->assertChangesEqualsFixture('user_updated_users_state.json');


$response->assertNoContent();

$this->assertDatabaseHas('users', $data);
self::$userState->assertChangesEqualsFixture('profile_updated__users_state.json');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self::$userState->assertChangesEqualsFixture('profile_updated__users_state.json');
self::$userState->assertChangesEqualsFixture('profile_updated_users_state.json');

$this->assertDatabaseMissing('users', [
'id' => 2,
]);
self::$userState->assertChangesEqualsFixture('user_deleted__users_state.json');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self::$userState->assertChangesEqualsFixture('user_deleted__users_state.json');
self::$userState->assertChangesEqualsFixture('user_deleted_users_state.json');

@DenTray DenTray assigned aizlee and unassigned DenTray Aug 22, 2024
@aizlee aizlee assigned DenTray and unassigned aizlee Aug 23, 2024
Copy link
Collaborator

@DenTray DenTray left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check the all conversations was resolved

@DenTray DenTray assigned aizlee and unassigned DenTray Aug 23, 2024
@DenTray DenTray merged commit c32137f into development Aug 26, 2024
2 checks passed
@DenTray DenTray deleted the update-laravel-structure branch October 15, 2024 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants