Source of file CacheableNavigation_RebuildTest.php
Size: 0,643 Bytes - Last Modified: 2021-12-24T06:44:18+00:00
/var/www/docs.ssmods.com/process/src/tests/CacheableNavigation_RebuildTest.php
12345678910111213141516171819202122 | <?php /** * @author Deviate Ltd 2014-2015 http://www.deviate.net.nz * @package silverstripe-cachable */ class CacheableNavigation_RebuildTest extends SapphireTest { /** * Ensure the correct no. chunks and chunk-contents is built each time */ public function testChunkForQueue() { $task = singleton('CacheableNavigation_Rebuild'); $this->assertTrue($task->chunkForQueue(1167, 100, 1)); $this->assertTrue($task->chunkForQueue(1167, 100, 100)); $this->assertFalse($task->chunkForQueue(1167, 67, 100)); $this->assertTrue($task->chunkForQueue(1167, 67, 1101)); } } |