InstallTest.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. namespace Tests\Feature;
  3. use Tests\TestCase;
  4. class InstallTest extends TestCase
  5. {
  6. public function testInstalledDirectories()
  7. {
  8. $this->assertFileExists(admin_path());
  9. $this->assertFileExists(admin_path('Controllers'));
  10. $this->assertFileExists(admin_path('routes.php'));
  11. $this->assertFileExists(admin_path('bootstrap.php'));
  12. $this->assertFileExists(admin_path('Controllers/HomeController.php'));
  13. $this->assertFileExists(admin_path('Controllers/AuthController.php'));
  14. $this->assertFileExists(admin_path('Controllers/ExampleController.php'));
  15. $this->assertFileExists(config_path('admin.php'));
  16. $this->assertFileExists(public_path('vendor/dcat-admin'));
  17. $this->assertFileExists(database_path('migrations/2016_01_04_173148_create_admin_tables.php'));
  18. $this->assertFileExists(resource_path('lang/en/admin.php'));
  19. $this->assertFileExists(resource_path('lang/zh-CN/admin.php'));
  20. $this->assertFileExists(resource_path('lang/zh-CN/global.php'));
  21. }
  22. }