koel/tests/Feature/MediaCacheTest.php
2017-04-28 22:56:22 +08:00

21 lines
442 B
PHP

<?php
namespace Tests\Feature;
use MediaCache;
use Cache;
use Tests\BrowserKitTestCase;
class MediaCacheTest extends BrowserKitTestCase
{
public function testGetCache()
{
// first clear all cache
Cache::flush();
// now make sure the get() function returns data
$data = MediaCache::get();
$this->assertNotNull($data);
// and the data are seen in the cache as well
$this->assertEquals($data, Cache::get('media_cache'));
}
}