@@ -23,7 +23,7 @@ |
||
| 23 | 23 | $this->get("user-registration/"); |
| 24 | 24 | |
| 25 | 25 | $this->submitForm("SignUpForm", "action_doSubmit", array("FirstName" => "John", |
| 26 | - "Password[_Password]" => "admin", |
|
| 26 | + "Password[_Password]" => "admin", |
|
| 27 | 27 | "Password[_ConfirmPassword]" => "admin", "Email" => "[email protected]")); |
| 28 | 28 | |
| 29 | 29 | $this->assertEquals( |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | $signUpPersonal = Member::create(); |
| 48 | 48 | $form->saveInto($signUpPersonal); |
| 49 | 49 | if (isset($data['DOB']) && $data['DOB']) { |
| 50 | - $signUpPersonal->DOB = date('Y-m-d', strtotime($data['DOB'])); |
|
| 50 | + $signUpPersonal->DOB = date('Y-m-d', strtotime($data['DOB'])); |
|
| 51 | 51 | } |
| 52 | 52 | $signUpPersonal->write(); |
| 53 | 53 | $Member = Member::get()->byId($signUpPersonal->ID); |
@@ -63,10 +63,10 @@ discard block |
||
| 63 | 63 | } |
| 64 | 64 | |
| 65 | 65 | |
| 66 | - /** |
|
| 67 | - * @param Controller $controller the controller instance that is being passed to the form |
|
| 68 | - * @return FieldList Fields for this form. |
|
| 69 | - */ |
|
| 66 | + /** |
|
| 67 | + * @param Controller $controller the controller instance that is being passed to the form |
|
| 68 | + * @return FieldList Fields for this form. |
|
| 69 | + */ |
|
| 70 | 70 | protected function getFormFields($controller = null) |
| 71 | 71 | { |
| 72 | 72 | $fields = FieldList::create( |
@@ -74,8 +74,8 @@ |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * CMS fields test |
|
| 78 | - **/ |
|
| 77 | + * CMS fields test |
|
| 78 | + **/ |
|
| 79 | 79 | public function testgetCMSFields() |
| 80 | 80 | { |
| 81 | 81 | if ($this->siteconfig->getDBstatus()) { |
@@ -36,9 +36,9 @@ |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * Returns the profile form |
|
| 40 | - * @return UserManagement\Forms\ProfileForm |
|
| 41 | - */ |
|
| 39 | + * Returns the profile form |
|
| 40 | + * @return UserManagement\Forms\ProfileForm |
|
| 41 | + */ |
|
| 42 | 42 | public function ProfileForm() |
| 43 | 43 | { |
| 44 | 44 | $form = new ProfileForm($this, 'ProfileForm'); |
@@ -55,9 +55,9 @@ discard block |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | - * Returns columns names of the reports |
|
| 59 | - * @return array |
|
| 60 | - */ |
|
| 58 | + * Returns columns names of the reports |
|
| 59 | + * @return array |
|
| 60 | + */ |
|
| 61 | 61 | public function columns() |
| 62 | 62 | { |
| 63 | 63 | $fields = [ |
@@ -77,9 +77,9 @@ discard block |
||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | /** |
| 80 | - * Return a FieldList of the fields that can be used to filter |
|
| 81 | - * @return array |
|
| 82 | - */ |
|
| 80 | + * Return a FieldList of the fields that can be used to filter |
|
| 81 | + * @return array |
|
| 82 | + */ |
|
| 83 | 83 | public function parameterFields() |
| 84 | 84 | { |
| 85 | 85 | $member = Security::getCurrentUser() ? Security::getCurrentUser() : Member::create(); |
@@ -94,11 +94,11 @@ discard block |
||
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | /** |
| 97 | - * @param string $start |
|
| 98 | - * @param string $end |
|
| 99 | - * @param string $firstName |
|
| 100 | - * @return string | bool |
|
| 101 | - */ |
|
| 97 | + * @param string $start |
|
| 98 | + * @param string $end |
|
| 99 | + * @param string $firstName |
|
| 100 | + * @return string | bool |
|
| 101 | + */ |
|
| 102 | 102 | public function FilterByDate($start, $end) |
| 103 | 103 | { |
| 104 | 104 | $filter = false; |
@@ -113,10 +113,10 @@ discard block |
||
| 113 | 113 | } |
| 114 | 114 | |
| 115 | 115 | /** |
| 116 | - * @param string $firstName |
|
| 117 | - * @param string $filter |
|
| 118 | - * @return string | bool |
|
| 119 | - */ |
|
| 116 | + * @param string $firstName |
|
| 117 | + * @param string $filter |
|
| 118 | + * @return string | bool |
|
| 119 | + */ |
|
| 120 | 120 | public function FilterByName($filter, $firstName) |
| 121 | 121 | { |
| 122 | 122 | if ($firstName) { |
@@ -80,17 +80,17 @@ |
||
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
| 83 | - * Return the Message from siteconfig |
|
| 84 | - * @return string |
|
| 85 | - */ |
|
| 83 | + * Return the Message from siteconfig |
|
| 84 | + * @return string |
|
| 85 | + */ |
|
| 86 | 86 | public function getCustomMessage($field) |
| 87 | 87 | { |
| 88 | 88 | return $this->siteConfig->$field; |
| 89 | 89 | } |
| 90 | 90 | |
| 91 | 91 | /** |
| 92 | - * Assign siteconfig object |
|
| 93 | - */ |
|
| 92 | + * Assign siteconfig object |
|
| 93 | + */ |
|
| 94 | 94 | protected function setsiteConfig() |
| 95 | 95 | { |
| 96 | 96 | $this->siteConfig = SiteConfig::current_site_config(); |
@@ -15,8 +15,8 @@ |
||
| 15 | 15 | class LoginHandlerExtensionTest extends FunctionalTest |
| 16 | 16 | { |
| 17 | 17 | /** |
| 18 | - * Login redirect |
|
| 19 | - */ |
|
| 18 | + * Login redirect |
|
| 19 | + */ |
|
| 20 | 20 | public function testRedirect() |
| 21 | 21 | { |
| 22 | 22 | $this->markTestIncomplete('Test user config CMS fields'); |