Files
luos/tests/Feature/CacheTest.php

20 lines
339 B
PHP
Raw Permalink Normal View History

<?php
namespace Tests\Feature;
use Illuminate\Support\Facades\Cache;
use Tests\TestCase;
class CacheTest extends TestCase
{
/**
* A basic cache example.
*
* @return void
*/
public function testCache()
{
Cache::put('foo', 'bar', 5);
$this->assertEquals('bar', (Cache::get('foo')));
}
2017-08-09 15:48:00 -04:00
}