|
@@ -31,14 +31,8 @@ class InstallTest extends TestCase
|
|
|
$this->assertFileExists(config_path('admin.php'));
|
|
|
$this->assertFileExists(public_path(Admin::asset()->getRealPath('@admin')));
|
|
|
$this->assertFileExists(database_path('migrations/2016_01_04_173148_create_admin_tables.php'));
|
|
|
- if (version_compare(app()->version(), '9.0.0', '>=')) {
|
|
|
- $this->assertFileExists(base_path('lang/en/admin.php'));
|
|
|
- $this->assertFileExists(base_path('lang/zh_CN/admin.php'));
|
|
|
- $this->assertFileExists(base_path('lang/zh_CN/global.php'));
|
|
|
- } else {
|
|
|
- $this->assertFileExists(resource_path('lang/en/admin.php'));
|
|
|
- $this->assertFileExists(resource_path('lang/zh_CN/admin.php'));
|
|
|
- $this->assertFileExists(resource_path('lang/zh_CN/global.php'));
|
|
|
- }
|
|
|
+ $this->assertFileExists(app()->langPath().'/en/admin.php');
|
|
|
+ $this->assertFileExists(app()->langPath().'/zh_CN/admin.php');
|
|
|
+ $this->assertFileExists(app()->langPath().'/zh_CN/global.php');
|
|
|
}
|
|
|
}
|