/**
  * Dump files
  * @param $output
  */
 protected function dumpAssets($output)
 {
     foreach ($this->am->getAssets() as $asset) {
         /** @var  $asset \Oro\Bundle\AsseticBundle\Node\OroAsseticNode */
         $this->doDump($asset->getCompressAsset(), $output);
     }
 }
 public function testGetAssets()
 {
     $resource = $this->createMockResource('resource_name', 'resource_content');
     $token = $this->getMockBuilder('Twig_TokenStream')->disableOriginalConstructor()->getMock();
     $barAsset = $this->createMockOroAsseticNode('uncompress_bar_asset');
     $fooAsset = $this->createMockOroAsseticNode('uncompress_foo_asset', [$barAsset]);
     $this->am->expects($this->once())->method('getResources')->will($this->returnValue([$resource]));
     $this->twig->expects($this->once())->method('tokenize')->with('resource_content', 'resource_name')->will($this->returnValue($token));
     $this->twig->expects($this->once())->method('parse')->with($token)->will($this->returnValue($fooAsset));
     $this->assertEquals(['uncompress_foo_asset' => $fooAsset, 'uncompress_bar_asset' => $barAsset], $this->manager->getAssets());
 }