File
- drupal/core/vendor/kriswallsmith/assetic/tests/Assetic/Test/Asset/AssetCacheTest.php, line 94
Class
- AssetCacheTest
Namespace
Assetic\Test\Asset
Code
public function testDumpToCache() {
$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(false));
$this->inner
->expects($this
->once())
->method('dump')
->will($this
->returnValue($content));
$this->cache
->expects($this
->once())
->method('set')
->with($this
->isType('string'), $content);
$this
->assertEquals($content, $this->asset
->dump(), '->dump() returns the dumped value');
}