silverstripe-framework/tests/php/Forms/FormRequestHandlerTest/TestForm.php
Ingo Schommer adbf9d9f71 Process actions on Form subclasses
Regression introduced through https://github.com/silverstripe/silverstripe-framework/issues/6362.

Quote from the RFC:

```
Thus the order of action precedence becomes

action callback
action on the Form
action on the FormRequestHandler
action on any parent controller (if given)
```
2017-05-18 22:47:39 +12:00

15 lines
266 B
PHP

<?php
namespace SilverStripe\Forms\Tests\FormRequestHandlerTest;
use SilverStripe\Control\HTTPResponse;
use SilverStripe\Forms\Form;
class TestForm extends Form
{
public function mySubmitOnForm()
{
return new HTTPResponse('success', 200);
}
}