[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/tests/ -> tablelib_test.php (summary)

Test tablelib.

Copyright: 2013 Damyon Wiese <[email protected]>
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 367 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

core_tablelib_testcase:: (17 methods):
  generate_columns()
  generate_headers()
  generate_data()
  run_table_test()
  create_and_setup_table()
  test_empty_table()
  test_has_next_pagination()
  test_has_hide()
  test_has_not_hide()
  test_has_sort()
  test_has_not_sort()
  test_has_not_next_pagination()
  test_1_col()
  test_empty_rows()
  test_5_cols()
  test_50_cols()
  test_get_row_html()


Class: core_tablelib_testcase  - X-Ref

Test some of tablelib.

generate_columns($cols)   X-Ref
No description

generate_headers($cols)   X-Ref
No description

generate_data($rows, $cols)   X-Ref
No description

run_table_test($columns, $headers, $sortable, $collapsible, $suppress, $nosorting, $data, $pagesize)   X-Ref
Create a table with properties as passed in params, add data and output html.

param: string[] $columns
param: string[] $headers
param: bool     $sortable
param: bool     $collapsible
param: string[] $suppress
param: string[] $nosorting
param: (array|object)[] $data
param: int      $pagesize

create_and_setup_table($columns, $headers, $sortable, $collapsible, $suppress, $nosorting)   X-Ref
Create a table with properties as passed in params.

param: string[] $columns
param: string[] $headers
param: bool $sortable
param: bool $collapsible
param: string[] $suppress
param: string[] $nosorting
return: flexible_table

test_empty_table()   X-Ref
No description

test_has_next_pagination()   X-Ref
No description

test_has_hide()   X-Ref
No description

test_has_not_hide()   X-Ref
No description

test_has_sort()   X-Ref
No description

test_has_not_sort()   X-Ref
No description

test_has_not_next_pagination()   X-Ref
No description

test_1_col()   X-Ref
No description

test_empty_rows()   X-Ref
No description

test_5_cols()   X-Ref
No description

test_50_cols()   X-Ref
No description

test_get_row_html()   X-Ref
No description



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1