mirror of
https://github.com/koel/koel
synced 2024-11-24 21:23:06 +00:00
21 lines
442 B
PHP
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'));
|
|
}
|
|
}
|