1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Made social account detach a POST request

Closes #2808
This commit is contained in:
Dan Brown
2021-06-14 22:37:58 +01:00
parent 94bf5b8fbb
commit 7d951b842c
3 changed files with 8 additions and 5 deletions

View File

@ -99,9 +99,9 @@ class SocialAuthTest extends TestCase
]);
$resp = $this->actingAs($editor)->get($editor->getEditUrl());
$resp->assertElementContains('a[href$="/login/service/github/detach"]', 'Disconnect Account');
$resp->assertElementContains('form[action$="/login/service/github/detach"]', 'Disconnect Account');
$resp = $this->get('/login/service/github/detach');
$resp = $this->post('/login/service/github/detach');
$resp->assertRedirect($editor->getEditUrl());
$resp = $this->followRedirects($resp);
$resp->assertSee('Github account was successfully disconnected from your profile.');