File
- drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Asset/AssetCacheTest.php, line 75
Class
- AssetCacheTest
Namespace
Assetic\Test\Asset
Code
public function testDumpFromCache() {
$content = 'asdf';
$this->inner
->expects($this
->once())
->method('getFilters')
->will($this
->returnValue(array()));
$this->cache
->expects($this
->once())
->method('has')
->with($this
->isType('string'))
->will($this
->returnValue(true));
$this->cache
->expects($this
->once())
->method('get')
->with($this
->isType('string'))
->will($this
->returnValue($content));
$this
->assertEquals($content, $this->asset
->dump(), '->dump() returns the cached value');
}