mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
Set logged in shannel for delete account test
If the logged in account is not set, it triggers a warning.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
namespace Zotlabs\Tests\Unit\Module;
|
||||
|
||||
use App;
|
||||
use PHPUnit\Framework\Attributes\Before;
|
||||
|
||||
class AdminAccountsTest extends TestCase {
|
||||
@@ -75,12 +76,14 @@ class AdminAccountsTest extends TestCase {
|
||||
$this->assertEquals('2 account blocked/unblocked', $this->notice[0]);
|
||||
}
|
||||
|
||||
public function test_deleting_accouns_remove_them_from_db(): void {
|
||||
public function test_deleting_accounts_remove_them_from_db(): void {
|
||||
$params = [
|
||||
'user' => [ 42, 44 ],
|
||||
'page_accounts_delete' => true,
|
||||
];
|
||||
|
||||
App::$account = $this->fixtures['account'][0];
|
||||
|
||||
try {
|
||||
$this->post('admin/accounts', [], $params);
|
||||
} catch (RedirectException $redirect) {
|
||||
|
||||
Reference in New Issue
Block a user