@@ -356,7 +356,7 @@ |
||
| 356 | 356 | * Simulates a file upload |
| 357 | 357 | * |
| 358 | 358 | * @param string $fileField Name of the field to mock upload for |
| 359 | - * @param array $tmpFileName Name of temporary file to upload |
|
| 359 | + * @param string $tmpFileName Name of temporary file to upload |
|
| 360 | 360 | * @return HTTPResponse form response |
| 361 | 361 | */ |
| 362 | 362 | protected function mockFileUpload($fileField, $tmpFileName) { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @skipUpgrade |
| 27 | - * @param null $controller |
|
| 27 | + * @param TestController $controller |
|
| 28 | 28 | * @param string $name |
| 29 | 29 | */ |
| 30 | 30 | public function __construct($controller = null, $name = 'Form') |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | use SilverStripe\Core\Convert; |
| 4 | -use SilverStripe\Core\Config\Config; |
|
| 5 | 4 | use SilverStripe\Dev\SapphireTest; |
| 6 | 5 | use SilverStripe\View\Parsers\URLSegmentFilter; |
| 7 | 6 | |
@@ -343,7 +343,7 @@ |
||
| 343 | 343 | * string of HTML. |
| 344 | 344 | * |
| 345 | 345 | * @param string $html HTML to scan for elements |
| 346 | - * @return SimpleXMLElement |
|
| 346 | + * @return \SimpleXMLElement |
|
| 347 | 347 | */ |
| 348 | 348 | public function findOptionElements($html) { |
| 349 | 349 | $parser = new CSSContentParser($html); |
@@ -111,6 +111,9 @@ |
||
| 111 | 111 | |
| 112 | 112 | protected $id; |
| 113 | 113 | |
| 114 | + /** |
|
| 115 | + * @param string $link |
|
| 116 | + */ |
|
| 114 | 117 | public function __construct($gridField, $id, $link) { |
| 115 | 118 | $this->gridField = $gridField; |
| 116 | 119 | $this->id = $id; |
@@ -129,7 +129,7 @@ |
||
| 129 | 129 | /** |
| 130 | 130 | * |
| 131 | 131 | * @param GridField $gridField |
| 132 | - * @return array |
|
| 132 | + * @return string[] |
|
| 133 | 133 | */ |
| 134 | 134 | public function getActions($gridField) { |
| 135 | 135 | return array('addto'); |
@@ -21,6 +21,9 @@ |
||
| 21 | 21 | return str_replace(' ', $nbsp, trim($input)); |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param string $locale |
|
| 26 | + */ |
|
| 24 | 27 | protected function checkInputValidation($locale, $tests) { |
| 25 | 28 | i18n::set_locale($locale); |
| 26 | 29 | $field = new NumericField('Number'); |
@@ -946,7 +946,7 @@ discard block |
||
| 946 | 946 | * Simulates a file upload |
| 947 | 947 | * |
| 948 | 948 | * @param string $fileField Name of the field to mock upload for |
| 949 | - * @param array $tmpFileName Name of temporary file to upload |
|
| 949 | + * @param string $tmpFileName Name of temporary file to upload |
|
| 950 | 950 | * @return HTTPResponse form response |
| 951 | 951 | */ |
| 952 | 952 | protected function mockFileUpload($fileField, $tmpFileName) { |
@@ -958,6 +958,9 @@ discard block |
||
| 958 | 958 | ); |
| 959 | 959 | } |
| 960 | 960 | |
| 961 | + /** |
|
| 962 | + * @param string $fileField |
|
| 963 | + */ |
|
| 961 | 964 | protected function mockFileExists($fileField, $fileName) { |
| 962 | 965 | return $this->get( |
| 963 | 966 | "UploadFieldTest_Controller/Form/field/{$fileField}/fileexists?filename=".urlencode($fileName) |
@@ -1,6 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use SilverStripe\Dev\Debug; |
|
| 4 | 3 | use SilverStripe\ORM\DataObjectSchema; |
| 5 | 4 | use SilverStripe\ORM\DB; |
| 6 | 5 | use SilverStripe\ORM\HasManyList; |