FOSSology  4.4.0
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

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

Protected Member Functions

 setUp ()
 initialization
 
 tearDown ()
 clean the env
 

Private Attributes

 $testDb
 
 $dbManager
 

Detailed Description

Definition at line 21 of file test_common_cache.php.

Member Function Documentation

◆ preparation4ReportCachePut()

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 56 of file test_common_cache.php.

◆ resetEnv4ReportCachePut()

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 153 of file test_common_cache.php.

◆ testReportCacheGet()

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 129 of file test_common_cache.php.

◆ testReportCachePut_upload_id_not_null()

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 84 of file test_common_cache.php.

◆ testReportCachePut_upload_id_null()

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 107 of file test_common_cache.php.


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