TestCase.php 545 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Dcat\Admin\Tests;
  3. use Dcat\Admin\Models\Administrator;
  4. use Laravel\BrowserKitTesting\TestCase as BaseTestCase;
  5. class TestCase extends BaseTestCase
  6. {
  7. use CreatesApplication;
  8. protected $baseUrl = 'http://localhost:8000';
  9. /**
  10. * @var Administrator
  11. */
  12. protected $user;
  13. protected $login = true;
  14. public function setUp(): void
  15. {
  16. parent::setUp();
  17. $this->boot();
  18. }
  19. public function tearDown(): void
  20. {
  21. $this->destory();
  22. parent::tearDown();
  23. }
  24. }