FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
test_common_cached Class Reference
Inheritance diagram for test_common_cached:
Inheritance graph
Collaboration diagram for test_common_cached:
Collaboration graph

Public Member Functions

 preparation4ReportCachePut ()
 preparation for testing ReportCachePut More...
 
 testReportCachePut_upload_id_not_null ()
 test for ReportCachePut upload id is in $CacheKey More...
 
 testReportCachePut_upload_id_null ()
 test for ReportCachePut upload id is not in $CacheKey More...
 
 testReportCacheGet ()
 test for ReportCacheGet More...
 
 resetEnv4ReportCachePut ()
 reset enviroment after testing ReportCachePut More...
 

Public Attributes

 $PG_CONN
 
 $upload_pk = 0
 
 $uploadtree_pk = 0
 
 $UserCacheStat = 0
 

Protected Member Functions

 setUp ()
 initialization
 
 tearDown ()
 clean the env More...
 

Detailed Description

Definition at line 30 of file test_common_cache.php.

Member Function Documentation

test_common_cached::preparation4ReportCachePut ( )

preparation for testing ReportCachePut

preparation, add uploadtree, upload, pfile record

add an upload record

get upload id

add an uploadtree record

get uploadtree id

Definition at line 53 of file test_common_cache.php.

test_common_cached::resetEnv4ReportCachePut ( )

reset enviroment after testing ReportCachePut

delete the test data

delete the report_cache record

delete the uploadtree record

delete the upload record

Definition at line 170 of file test_common_cache.php.

test_common_cached::tearDown ( )
protected

clean the env

db close

Definition at line 195 of file test_common_cache.php.

test_common_cached::testReportCacheGet ( )

test for ReportCacheGet

put an Cache record

get the cache value thru CacheKey

< Cache is off for this user

Definition at line 145 of file test_common_cache.php.

test_common_cached::testReportCachePut_upload_id_not_null ( )

test for ReportCachePut upload id is in $CacheKey

get report_cache_value to check

Definition at line 92 of file test_common_cache.php.

test_common_cached::testReportCachePut_upload_id_null ( )

test for ReportCachePut upload id is not in $CacheKey

get report_cache_value to check

Definition at line 119 of file test_common_cache.php.


The documentation for this class was generated from the following file: