[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/_test/tests/inc/ -> media_searchlist.test.php (summary)

(no description)

File Size: 258 lines (8 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

media_searchlist_test:: (17 methods):
  save()
  setUp()
  reset_media_printfile()
  media_searchlist_header()
  media_printfile()
  media_searchlist()
  create_media_items()
  media_searchlist_except()
  test_noglobbing()
  test_globbing_asterisk()
  test_globbing_find_by_ext()
  test_globbing_question_mark()
  test_globbing_question_mark_and_asterisk()
  test_globbing_question_mark_on_the_begining()
  test_globbing_two_question_marks_on_the_begining()
  test_globbing_two_letter_file_names()
  test_zero_search()


Class: media_searchlist_test  - X-Ref

save($name, $copy)   X-Ref
Save the file

param: $name name of saving file
param: $copy file used as a content of uploaded file

setUp()   X-Ref
Called for each test


reset_media_printfile()   X-Ref
No description

media_searchlist_header($query, $ns)   X-Ref
Build search result header as in media_searchlist() with $fullscreen = false

param: $query search query
param: $ns namespece where we search
return: string

media_printfile($item)   X-Ref
Wrap around media_printfile: return the result.

param: $item
return: string

media_searchlist($query, $ns)   X-Ref
Wrap around media_searchlist: return the result
Reset media_printfile static variables afterwards

param: $query
param: $ns
return: string

create_media_items($rel_ids)   X-Ref

param: array[string] $rel_ids media ids relative to $this->upload_ns
return: array $items as required by media_printfile

media_searchlist_except($rel_ids, $query, $ns)   X-Ref
Output result as in 'media_searchlist' but use an arbitrary media IDs list instead of actual searching
Reset media_printfile static variables afterwards

param: array[string] $rel_ids media ids relative to $this->upload_ns
param: string $query actual seqrch query (used for filling search filed input)
param: string $ns
return: string

test_noglobbing()   X-Ref
No description

test_globbing_asterisk()   X-Ref
No description

test_globbing_find_by_ext()   X-Ref
No description

test_globbing_question_mark()   X-Ref
No description

test_globbing_question_mark_and_asterisk()   X-Ref
No description

test_globbing_question_mark_on_the_begining()   X-Ref
No description

test_globbing_two_question_marks_on_the_begining()   X-Ref
No description

test_globbing_two_letter_file_names()   X-Ref
No description

test_zero_search()   X-Ref
No description