From db4cd3de3103957362985246d724aa8c5752b043 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Mon, 9 Nov 2009 04:48:35 +0000 Subject: [PATCH] BUGFIX Fixed UserDefinedFormEditorTest: Logging in before publishing so canPublish() doesnt return false --- tests/UserDefinedFormEditorTest.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/UserDefinedFormEditorTest.php b/tests/UserDefinedFormEditorTest.php index 2d7f9cf..adca9dd 100644 --- a/tests/UserDefinedFormEditorTest.php +++ b/tests/UserDefinedFormEditorTest.php @@ -19,6 +19,8 @@ class UserDefinedFormEditorTest extends FunctionalTest { } function testPublishing() { + $this->logInWithPermssion('ADMIN'); + $id = $this->form->ID; $this->form->Fields()->add(new EditableFormField()); $this->form->doPublish();