Example #1
0
 /**
  * Test preparation: create a binary which can be used for view
  * testing.
  */
 function setUp()
 {
     parent::setUp();
     $storage = new binarypool_storage('test');
     $asset = $storage->save('IMAGE', array('_' => array('file' => $this->testfile)));
     $this->assertNotNull($asset);
     $this->assetFile = $asset;
     $this->assetId = '096dfa489bc3f21df56eded2143843f135ae967e';
     binarypool_lastmodified::resetMemoryCache();
     binarypool_views::$lastModified = null;
     binarypool_views::$storageFactory = null;
 }
Example #2
0
 /**
  * Primarily for unit testing - flush any memory of lastmodified
  * urls held in memory 
  */
 public static function resetMemoryCache()
 {
     self::$modified = array();
 }