Core  3.2
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
TestSearchDirective Class Reference
+ Inheritance diagram for TestSearchDirective:
+ Collaboration diagram for TestSearchDirective:

Public Member Functions

 testErrorGeneralFilter ($filter, $expectedCore)
 
 testUseforSystemSearchDocWithCollection ($dirId, $existsNameList, $notExistsNameList)
 
 dataErrorGeneralFilter ()
 
 dataUseforSystemSearchDocWithCollection ()
 
 testOptionSearchCriteria ($fam, $keyword, $existsNameList, $notExistsNameList)
 
 dataOptionSearchCriteria ()
 
 testSearchDocOnlyCount ($fam, $properties, $methods, $filters, $expectedCount)
 
 dataSearchDocOnlyCount ()
 
 testSearchDocSetOrder ($fam, $orderby, $orderbyLabel, $expectedCount, $expectedTitles=array())
 
 dataSearchDocSetOrder ()
 
 testSearchDocSetOrderWithCollection ($collectionId, $orderby, $orderbyLabel, $expectedCount, $expectedTitles=array())
 
 dataSearchDocSetOrderWithCollection ()
 
 dataSpellGeneralFilter ()
 
 dataGeneralFilter ()
 
 dataGeneralSortFilter ()
 
- Public Member Functions inherited from TestCaseDcp
 importCsvData ($data)
 
 requiresCoreParamEquals ($paramName, $requiredValue, $markTestIncomplete=true)
 

Static Protected Member Functions

static getCommonImportFile ()
 
- Static Protected Member Functions inherited from TestCaseDcpCommonFamily
static getCommonImportFile ()
 
- Static Protected Member Functions inherited from TestCaseDcp
static beginTransaction ()
 
static rollbackTransaction ()
 
static connectUser ($login="admin")
 
static & getAction ()
 
static getApplication ()
 
static resetDocumentCache ()
 
static sudo ($login)
 
static exitSudo ()
 
static importDocument ($file)
 
static importDocuments ($fileList)
 

Protected Attributes

 $famName = 'TST_FULLSEARCHFAM1'
 

Additional Inherited Members

- Static Public Member Functions inherited from TestCaseDcpCommonFamily
static setUpBeforeClass ()
 
static tearDownAfterClass ()
 
- Static Public Member Functions inherited from TestCaseDcp
static setUpBeforeClass ()
 
static log ($text)
 
static setIncludePath ($include_path)
 
static resetIncludePath ()
 
- Protected Member Functions inherited from TestCaseDcpCommonFamily
 tearDown ()
 
 setUp ()
 
- Protected Member Functions inherited from TestCaseDcp
 setUp ()
 
 tearDown ()
 
 _DBGetValue ($sql)
 
- Static Protected Attributes inherited from TestCaseDcp
static $dbaccess
 
static $odb
 
static $user = null
 
static $include_path = null
 
static $testDirectory = "DCPTEST"
 
static $importCsvEnclosure = "auto"
 
static $importCsvSeparator = "auto"
 

Detailed Description

test some SearchDoc option like generalFilter

Definition at line 17 of file PU_test_dcp_searchdirective.php.

Member Function Documentation

dataErrorGeneralFilter ( )

Definition at line 203 of file PU_test_dcp_searchdirective.php.

dataGeneralFilter ( )

Definition at line 824 of file PU_test_dcp_searchdirective.php.

dataGeneralSortFilter ( )

Definition at line 1521 of file PU_test_dcp_searchdirective.php.

dataOptionSearchCriteria ( )

Definition at line 338 of file PU_test_dcp_searchdirective.php.

dataSearchDocOnlyCount ( )

Definition at line 410 of file PU_test_dcp_searchdirective.php.

dataSearchDocSetOrder ( )

Definition at line 518 of file PU_test_dcp_searchdirective.php.

dataSearchDocSetOrderWithCollection ( )

Definition at line 659 of file PU_test_dcp_searchdirective.php.

dataSpellGeneralFilter ( )

Definition at line 792 of file PU_test_dcp_searchdirective.php.

dataUseforSystemSearchDocWithCollection ( )

Definition at line 225 of file PU_test_dcp_searchdirective.php.

static getCommonImportFile ( )
staticprotected

import TST_FULLSERACHFAM1 family and some documents

Returns
string

Definition at line 24 of file PU_test_dcp_searchdirective.php.

testErrorGeneralFilter (   $filter,
  $expectedCore 
)
Parameters
$filterdataErrorGeneralFilter

Definition at line 152 of file PU_test_dcp_searchdirective.php.

testOptionSearchCriteria (   $fam,
  $keyword,
  $existsNameList,
  $notExistsNameList 
)

Test 'searchcriteria' attributes option

Parameters
string$famfamily id/name to search on
string$keywordsearch for this keyword
array$existsNameListList of documents name that should be returned by the search
array$notExistsNameListLost of documents name that should NOT be returned by the search dataOptionSearchCriteria

Definition at line 313 of file PU_test_dcp_searchdirective.php.

testSearchDocOnlyCount (   $fam,
  $properties,
  $methods,
  $filters,
  $expectedCount 
)

Test SearchDoc->onlyCount() method

Parameters
string$famfamily id or name
array$propertieslist of ($propertyName => $propertyValue) to be set on the SearchDoc object (e.g. array("only" => true))
array$methodslist of ($methodName) to be called on the SearchDoc object (e.g. array("noViewControl") to call $search->noViewControl())
array$filterslist of SQL conditions/filters to be added with the $search->addFilter() method (e.g. array("foo <> 'bar'"))
int$expectedCountexpected documents count
Returns
void dataSearchDocOnlyCount

Definition at line 376 of file PU_test_dcp_searchdirective.php.

testSearchDocSetOrder (   $fam,
  $orderby,
  $orderbyLabel,
  $expectedCount,
  $expectedTitles = array() 
)

Test setOrder by label on enum attributes

dataSearchDocSetOrder

Definition at line 498 of file PU_test_dcp_searchdirective.php.

testSearchDocSetOrderWithCollection (   $collectionId,
  $orderby,
  $orderbyLabel,
  $expectedCount,
  $expectedTitles = array() 
)

Test setOrder by label on enum attributes

dataSearchDocSetOrderWithCollection

Definition at line 638 of file PU_test_dcp_searchdirective.php.

testUseforSystemSearchDocWithCollection (   $dirId,
  $existsNameList,
  $notExistsNameList 
)

test "usefor" system search

Parameters
string$dirIdThe identifer of the collection to use
array$existsNameListList of documents name that must be returned by the search
array$notExistsNameListList of documents name that must NOT be returned by the search
Returns
void dataUseforSystemSearchDocWithCollection

Definition at line 174 of file PU_test_dcp_searchdirective.php.

+ Here is the call graph for this function:

Field Documentation

$famName = 'TST_FULLSEARCHFAM1'
protected

Definition at line 29 of file PU_test_dcp_searchdirective.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen