PHP Class DisplayResultsTest, phpmyadmin

Inheritance: extends PMATestCase
Show file Open project: phpmyadmin/phpmyadmin

Protected Properties

Property Type Description
$object

Public Methods

Method Description
dataProviderForGetCheckboxAndLinks ( ) : array Data provider for testGetCheckboxAndLinks
dataProviderForGetCheckboxForMultiRowSubmissions ( ) : array Data provider for testGetCheckboxForMultiRowSubmissions
dataProviderForGetCopyLink ( ) : array Data provider for testGetCopyLink
dataProviderForGetDeleteLink ( ) : array Data provider for testGetDeleteLink
dataProviderForGetEditLink ( ) : array Data provider for testGetEditLink
dataProviderForGetPlacedLinks ( ) : array Data provider for testGetPlacedLinks
dataProviderForTestGetClassesForColumn ( ) : array Data provider for testGetClassesForColumn
dataProviderForTestGetDataCellForNonNumericColumns ( ) : array Data provider for testGetDataCellForNonNumericColumns
dataProviderForTestGetPartialText ( ) : array Data provider for testGetPartialText
dataProviderForTestGetRowInfoForSpecialLinks ( ) : array Data provider for testGetRowInfoForSpecialLinks
dataProviderForTestGetShowAllCheckboxForTableNavigation ( ) : array Data provider for testGetShowAllButtonForTableNavigation
dataProviderForTestGetSpecialLinkUrl ( ) : array Data provider for testGetSpecialLinkUrl
dataProviderForTestHandleNonPrintableContents ( ) : array Data provider for testHandleNonPrintableContents
dataProviderForTestSetHighlightedColumnGlobalField ( ) : array Data provider for testSetHighlightedColumnGlobalField
providerForTestGetTableNavigation ( ) : array Provider for testing table navigation
providerForTestGetTableNavigationButton ( ) : array Provider for testGetTableNavigationButton
testGetCheckboxAndLinks ( string $position, string $del_url, array $displayParts, string $row_no, string $where_clause, string $where_clause_html, array $condition_array, string $edit_url, string $copy_url, string $class, string $edit_str, string $copy_str, string $del_str, string $js_conf, string $output ) : void Test for _getCheckboxAndLinks
testGetCheckboxForMultiRowSubmissions ( string $del_url, array $displayParts, string $row_no, string $where_clause_html, array $condition_array, string $id_suffix, string $class, string $output ) : void Test for _getCheckboxForMultiRowSubmissions
testGetClassForDateTimeRelatedFieldsCase1 ( ) : void Test for _getClassForDateTimeRelatedFields - case 1
testGetClassForDateTimeRelatedFieldsCase2 ( ) : void Test for _getClassForDateTimeRelatedFields - case 2
testGetClassForDateTimeRelatedFieldsCase3 ( ) : void Test for _getClassForDateTimeRelatedFields - case 3
testGetClassesForColumn ( string $grid_edit_class, string $not_null_class, string $relation_class, string $hide_class, string $field_type_class, string $output ) : void Test for _getClassesForColumn
testGetCopyLink ( string $copy_url, string $copy_str, string $where_clause, string $where_clause_html, string $class, string $output ) : void Test for _getCopyLink
testGetDataCellForNonNumericColumns ( boolean $protectBinary, string $column, string $class, object $meta, array $map, array $_url_params, boolean $condition_field, string $transformation_plugin, string $default_function, string $transform_options, boolean $is_field_truncated, array $analyzed_sql_results, integer $dt_result, integer $col_index, string $output ) : void Test _getDataCellForNonNumericColumns
testGetDeleteLink ( string $del_url, string $del_str, string $js_conf, string $class, string $output ) : void Test for _getDeleteLink
testGetEditLink ( string $edit_url, string $class, string $edit_str, string $where_clause, string $where_clause_html, string $output ) : void Test for _getEditLink
testGetOffsetsCase1 ( ) : void Test for _getOffsets - case 1
testGetOffsetsCase2 ( ) : void Test for _getOffsets - case 2
testGetPartialText ( string $pftext, integer $limitChars, string $str, boolean $output ) : void Test _getPartialText
testGetPlacedLinks ( string $dir, string $del_url, array $displayParts, integer $row_no, string $where_clause, string $where_clause_html, array $condition_array, string $edit_url, string $copy_url, string $edit_anchor_class, string $edit_str, string $copy_str, string $del_str, string $js_conf, string $output ) : void Test for _getPlacedLinks
testGetRowInfoForSpecialLinks ( array $fields_meta, integer $fields_count, array $row, array $col_order, boolean $output ) : void Test _getRowInfoForSpecialLinks
testGetShowAllCheckboxForTableNavigation ( string $db, string $table, string $goto, integer $unique_id, string $html_sql_query, string $output ) : void Test _getShowAllButtonForTableNavigation
testGetSpecialLinkUrl ( string $db, string $table, string $column_value, array $row_info, string $field_name, boolean $output ) : void Test _getSpecialLinkUrl
testGetTableNavigation ( ) : void Test for table navigation
testGetTableNavigationButton ( string $caption, string $title, integer $pos, string $html_sql_query, string $output ) : void Test for navigation buttons
testHandleNonPrintableContents ( boolean $display_binary, boolean $display_blob, string $category, string $content, string $transformation_plugin, string $transform_options, string $default_function, object $meta, array $url_params, boolean $is_truncated, string $output ) : void Test _handleNonPrintableContents
testSetHighlightedColumnGlobalField ( array $analyzed_sql, array $output ) : void Test _setHighlightedColumnGlobalField
testisSelect ( ) : void Test for _isSelect function

Protected Methods

Method Description
setUp ( ) : void Sets up the fixture, for example, opens a network connection.
tearDown ( ) : void Tears down the fixture, for example, closes a network connection.

Private Methods

Method Description
_callPrivateFunction ( string $name, array $params ) : the Call private functions by setting visibility to public.

Method Details

dataProviderForGetCheckboxForMultiRowSubmissions() public method

Data provider for testGetCheckboxForMultiRowSubmissions
public dataProviderForGetCheckboxForMultiRowSubmissions ( ) : array
return array parameters and output

dataProviderForTestGetClassesForColumn() public method

Data provider for testGetClassesForColumn
public dataProviderForTestGetClassesForColumn ( ) : array
return array parameters and output

dataProviderForTestGetDataCellForNonNumericColumns() public method

Data provider for testGetDataCellForNonNumericColumns
public dataProviderForTestGetDataCellForNonNumericColumns ( ) : array
return array parameters and output

dataProviderForTestGetPartialText() public method

Data provider for testGetPartialText
public dataProviderForTestGetPartialText ( ) : array
return array parameters and output

dataProviderForTestGetShowAllCheckboxForTableNavigation() public method

Data provider for testGetShowAllButtonForTableNavigation
public dataProviderForTestGetShowAllCheckboxForTableNavigation ( ) : array
return array parameters and output

dataProviderForTestGetSpecialLinkUrl() public method

Data provider for testGetSpecialLinkUrl
public dataProviderForTestGetSpecialLinkUrl ( ) : array
return array parameters and output

dataProviderForTestHandleNonPrintableContents() public method

Data provider for testHandleNonPrintableContents
public dataProviderForTestHandleNonPrintableContents ( ) : array
return array parameters and output

dataProviderForTestSetHighlightedColumnGlobalField() public method

Data provider for testSetHighlightedColumnGlobalField
public dataProviderForTestSetHighlightedColumnGlobalField ( ) : array
return array parameters and output

providerForTestGetTableNavigation() public method

Provider for testing table navigation
public providerForTestGetTableNavigation ( ) : array
return array data for testGetTableNavigation

providerForTestGetTableNavigationButton() public method

Provider for testGetTableNavigationButton
public providerForTestGetTableNavigationButton ( ) : array
return array array data for testGetTableNavigationButton

setUp() protected method

This method is called before a test is executed.
protected setUp ( ) : void
return void

tearDown() protected method

This method is called after a test is executed.
protected tearDown ( ) : void
return void

testGetCheckboxForMultiRowSubmissions() public method

Test for _getCheckboxForMultiRowSubmissions
public testGetCheckboxForMultiRowSubmissions ( string $del_url, array $displayParts, string $row_no, string $where_clause_html, array $condition_array, string $id_suffix, string $class, string $output ) : void
$del_url string delete url
$displayParts array array with explicit indexes for all the display elements
$row_no string the row number
$where_clause_html string url encoded where clause
$condition_array array array of conditions in the where clause
$id_suffix string suffix for the id
$class string css classes for the td element
$output string output of _getCheckboxForMultiRowSubmissions
return void

testGetClassForDateTimeRelatedFieldsCase1() public method

Test for _getClassForDateTimeRelatedFields - case 1

testGetClassForDateTimeRelatedFieldsCase2() public method

Test for _getClassForDateTimeRelatedFields - case 2

testGetClassForDateTimeRelatedFieldsCase3() public method

Test for _getClassForDateTimeRelatedFields - case 3

testGetClassesForColumn() public method

Test for _getClassesForColumn
public testGetClassesForColumn ( string $grid_edit_class, string $not_null_class, string $relation_class, string $hide_class, string $field_type_class, string $output ) : void
$grid_edit_class string the class for all editable columns
$not_null_class string the class for not null columns
$relation_class string the class for relations in a column
$hide_class string the class for visibility of a column
$field_type_class string the class related to type of the field
$output string output of__getResettedClassForInlineEdit
return void

testGetDataCellForNonNumericColumns() public method

Test _getDataCellForNonNumericColumns
public testGetDataCellForNonNumericColumns ( boolean $protectBinary, string $column, string $class, object $meta, array $map, array $_url_params, boolean $condition_field, string $transformation_plugin, string $default_function, string $transform_options, boolean $is_field_truncated, array $analyzed_sql_results, integer $dt_result, integer $col_index, string $output ) : void
$protectBinary boolean all|blob|noblob|no
$column string the relevant column in data row
$class string the html class for column
$meta object the meta-information about the field
$map array the list of relations
$_url_params array the parameters for generate url
$condition_field boolean the column should highlighted or not
$transformation_plugin string the name of transformation function
$default_function string the default transformation function
$transform_options string the transformation parameters
$is_field_truncated boolean is data truncated due to LimitChars
$analyzed_sql_results array the analyzed query
$dt_result integer the link id associated to the query which results have to be displayed
$col_index integer the column index
$output string the output of this function
return void

testGetOffsetsCase1() public method

Test for _getOffsets - case 1
public testGetOffsetsCase1 ( ) : void
return void

testGetOffsetsCase2() public method

Test for _getOffsets - case 2
public testGetOffsetsCase2 ( ) : void
return void

testGetPartialText() public method

Test _getPartialText
public testGetPartialText ( string $pftext, integer $limitChars, string $str, boolean $output ) : void
$pftext string Partial or Full text
$limitChars integer Partial or Full text
$str string the string to be tested
$output boolean return value of _getPartialText
return void

testGetShowAllCheckboxForTableNavigation() public method

Test _getShowAllButtonForTableNavigation
public testGetShowAllCheckboxForTableNavigation ( string $db, string $table, string $goto, integer $unique_id, string $html_sql_query, string $output ) : void
$db string the database name
$table string the table name
$goto string the URL to go back in case of errors
$unique_id integer the unique id for the results set
$html_sql_query string the sql encoded by html special characters
$output string output of _getRowInfoForSpecialLinks
return void

testGetSpecialLinkUrl() public method

Test _getSpecialLinkUrl
public testGetSpecialLinkUrl ( string $db, string $table, string $column_value, array $row_info, string $field_name, boolean $output ) : void
$db string the database name
$table string the table name
$column_value string column value
$row_info array information about row
$field_name string column name
$output boolean output of _getSpecialLinkUrl
return void

testGetTableNavigation() public method

Test for table navigation
public testGetTableNavigation ( ) : void
return void

testGetTableNavigationButton() public method

Test for navigation buttons
public testGetTableNavigationButton ( string $caption, string $title, integer $pos, string $html_sql_query, string $output ) : void
$caption string iconic caption for button
$title string text for button
$pos integer position for next query
$html_sql_query string query ready for display
$output string output from the _getTableNavigationButton method
return void

testHandleNonPrintableContents() public method

Test _handleNonPrintableContents
public testHandleNonPrintableContents ( boolean $display_binary, boolean $display_blob, string $category, string $content, string $transformation_plugin, string $transform_options, string $default_function, object $meta, array $url_params, boolean $is_truncated, string $output ) : void
$display_binary boolean show binary contents?
$display_blob boolean show blob contents?
$category string BLOB|BINARY|GEOMETRY
$content string the binary content
$transformation_plugin string transformation plugin. Can also be the default function: PMA_mimeDefaultFunction
$transform_options string transformation parameters
$default_function string default transformation function
$meta object the meta-information about the field
$url_params array parameters that should go to the download link
$is_truncated boolean the result is truncated or not
$output string the output of this function
return void

testSetHighlightedColumnGlobalField() public method

Test _setHighlightedColumnGlobalField
public testSetHighlightedColumnGlobalField ( array $analyzed_sql, array $output ) : void
$analyzed_sql array the analyzed query
$output array setting value of _setHighlightedColumnGlobalField
return void

testisSelect() public method

Test for _isSelect function
public testisSelect ( ) : void
return void

Property Details

$object protected property

protected $object