Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 35... Línea 35...
35
 *
35
 *
36
 * @package    repository_contentbank
36
 * @package    repository_contentbank
37
 * @copyright  2020 Mihail Geshoski <mihail@moodle.com>
37
 * @copyright  2020 Mihail Geshoski <mihail@moodle.com>
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
38
 * @license    http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
39
 */
39
 */
40
class search_test extends \advanced_testcase {
40
final class search_test extends \advanced_testcase {
Línea 41... Línea 41...
41
 
41
 
42
    /**
42
    /**
43
     * Test get_search_contents() by searching through some existing content using different search terms.
43
     * Test get_search_contents() by searching through some existing content using different search terms.
44
     *
44
     *
Línea 73... Línea 73...
73
    /**
73
    /**
74
     * Data provider for test_get_search_contents().
74
     * Data provider for test_get_search_contents().
75
     *
75
     *
76
     * @return array
76
     * @return array
77
     */
77
     */
78
    public function get_search_contents_provider(): array {
78
    public static function get_search_contents_provider(): array {
79
        return [
79
        return [
80
            'Search for existing pattern found within the name of content items' => [
80
            'Search for existing pattern found within the name of content items' => [
81
                [
81
                [
82
                    'systemcontentfile1',
82
                    'systemcontentfile1',
83
                    'systemcontentfile2',
83
                    'systemcontentfile2',