| Línea 41... |
Línea 41... |
| 41 |
* @package core_contentbank
|
41 |
* @package core_contentbank
|
| 42 |
* @copyright 2020 Sara Arjona <sara@moodle.com>
|
42 |
* @copyright 2020 Sara Arjona <sara@moodle.com>
|
| 43 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
43 |
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
| 44 |
* @coversDefaultClass \core_contentbank\external\rename_content
|
44 |
* @coversDefaultClass \core_contentbank\external\rename_content
|
| 45 |
*/
|
45 |
*/
|
| 46 |
class rename_content_test extends \externallib_advanced_testcase {
|
46 |
final class rename_content_test extends \externallib_advanced_testcase {
|
| Línea 47... |
Línea 47... |
| 47 |
|
47 |
|
| 48 |
/**
|
48 |
/**
|
| 49 |
* Data provider for test_rename_content.
|
49 |
* Data provider for test_rename_content.
|
| 50 |
*
|
50 |
*
|
| 51 |
* @return array
|
51 |
* @return array
|
| 52 |
*/
|
52 |
*/
|
| 53 |
public function rename_content_provider() {
|
53 |
public static function rename_content_provider(): array {
|
| 54 |
return [
|
54 |
return [
|
| 55 |
'Standard name' => ['New name', 'New name', true],
|
55 |
'Standard name' => ['New name', 'New name', true],
|
| 56 |
'Name with digits' => ['Today is 17/04/2017', 'Today is 17/04/2017', true],
|
56 |
'Name with digits' => ['Today is 17/04/2017', 'Today is 17/04/2017', true],
|
| 57 |
'Name with symbols' => ['Follow us: @moodle', 'Follow us: @moodle', true],
|
57 |
'Name with symbols' => ['Follow us: @moodle', 'Follow us: @moodle', true],
|