From 4a9310735fcd0522e2fb382f9fb453874710df57 Mon Sep 17 00:00:00 2001 From: Santeri Hurnanen Date: Mon, 26 Aug 2024 11:15:58 +0300 Subject: [PATCH] UHF-10045: Fix tests --- .../helfi_users/tests}/src/Functional/UserCancelFormTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename {tests => modules/helfi_users/tests}/src/Functional/UserCancelFormTest.php (96%) diff --git a/tests/src/Functional/UserCancelFormTest.php b/modules/helfi_users/tests/src/Functional/UserCancelFormTest.php similarity index 96% rename from tests/src/Functional/UserCancelFormTest.php rename to modules/helfi_users/tests/src/Functional/UserCancelFormTest.php index 1aad023ac..fc33a9a4d 100644 --- a/tests/src/Functional/UserCancelFormTest.php +++ b/modules/helfi_users/tests/src/Functional/UserCancelFormTest.php @@ -60,7 +60,7 @@ public function testUserCancelForm(): void { $this->assertSession()->statusCodeEquals(200); $this->assertSession()->elementExists('xpath', '//input[@value="user_cancel_block"]'); $this->assertSession()->elementExists('xpath', '//input[@value="user_cancel_block_unpublish"]'); - $this->assertSession()->elementNotExists('xpath', '//input[@value="user_cancel_reassign"]'); + $this->assertSession()->elementExists('xpath', '//input[@value="user_cancel_reassign"]'); $this->assertSession()->elementNotExists('xpath', '//input[@value="user_cancel_delete"]'); // Test that the editorUser cannot access the cancel page.