no need to copy lang files
This commit is contained in:
parent
9feb567d41
commit
a6c10ced20
|
|
@ -7,9 +7,7 @@ use Illuminate\Filesystem\Filesystem;
|
|||
|
||||
class CopyPluginAssets
|
||||
{
|
||||
/**
|
||||
* @var Filesystem
|
||||
*/
|
||||
/** @var Filesystem */
|
||||
protected $filesystem;
|
||||
|
||||
public function __construct(Filesystem $filesystem)
|
||||
|
|
@ -27,9 +25,5 @@ class CopyPluginAssets
|
|||
$plugin->getPath().DIRECTORY_SEPARATOR.'assets',
|
||||
$dir.'/assets'
|
||||
);
|
||||
$this->filesystem->copyDirectory(
|
||||
$plugin->getPath().DIRECTORY_SEPARATOR.'lang',
|
||||
$dir.'/lang'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,14 +13,9 @@ class CopyPluginAssetsTest extends TestCase
|
|||
$mock->shouldReceive('deleteDirectory')
|
||||
->with($dir)
|
||||
->once();
|
||||
|
||||
$mock->shouldReceive('copyDirectory')
|
||||
->withArgs(['/path'.DIRECTORY_SEPARATOR.'assets', $dir.'/assets'])
|
||||
->once();
|
||||
|
||||
$mock->shouldReceive('copyDirectory')
|
||||
->withArgs(['/path'.DIRECTORY_SEPARATOR.'lang', $dir.'/lang'])
|
||||
->once();
|
||||
});
|
||||
|
||||
event('plugin.versionChanged', [$plugin]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user