1 | <?php |
||
16 | class TranslatableRequiredTest extends RestTestCase |
||
17 | { |
||
18 | |||
19 | /** |
||
20 | * test stuff that the backend should accept |
||
21 | * |
||
22 | * @dataProvider acceptableDataProvider |
||
23 | * |
||
24 | * @param array $data data to post |
||
25 | * |
||
26 | * @return void |
||
27 | */ |
||
28 | public function testPutWithAcceptableTranslatableRequests($data) |
||
36 | |||
37 | /** |
||
38 | * test stuff that the backend should accept |
||
39 | * |
||
40 | * @dataProvider unacceptableDataProvider |
||
41 | * |
||
42 | * @param array $data data to post |
||
43 | * @param string $complainField field to complain about |
||
44 | * |
||
45 | * @return void |
||
46 | */ |
||
47 | public function testPutMethodIncludeRequiredTranslatable($data, $complainField) |
||
56 | |||
57 | /** |
||
58 | * Posts that the backend shall accept |
||
59 | * |
||
60 | * @return array data |
||
61 | */ |
||
62 | public function acceptableDataProvider() |
||
86 | |||
87 | /** |
||
88 | * Posts that the backend shall NOT accept |
||
89 | * |
||
90 | * @return array data |
||
91 | */ |
||
92 | public function unacceptableDataProvider() |
||
128 | } |
||
129 |