/** * Make a new asset instance. * * @param string $path * @return \Basset\Asset */ public function make($path) { $absolutePath = $this->buildAbsolutePath($path); $relativePath = $this->buildRelativePath($absolutePath); $asset = new Asset($this->files, $this->factory, $this->appEnvironment, $absolutePath, $relativePath); return $asset->setOrder($this->nextAssetOrder()); }
public function getAssetInstance($relative, $absolute, $group, $order) { $asset = new Asset(m::mock('Illuminate\\Filesystem\\Filesystem'), m::mock('Basset\\Factory\\FactoryManager'), 'testing', $absolute, $relative); return $asset->setOrder($order)->setGroup($group); }