ExampleTest.php 785 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. use Illuminate\Foundation\Testing\WithoutMiddleware;
  3. use Illuminate\Foundation\Testing\DatabaseMigrations;
  4. use Illuminate\Foundation\Testing\DatabaseTransactions;
  5. class ExampleTest extends TestCase
  6. {
  7. /**
  8. * A basic functional test example.
  9. *
  10. * @return void
  11. */
  12. // public function testBasicExample()
  13. // {
  14. // $this->visit('/admin')
  15. // ->type('805321147@qq.com','email')
  16. // ->type('123456','password')
  17. // ->press('Login')
  18. // ->see('应用管理');
  19. // }
  20. public function test1()
  21. {
  22. $this->visit('/app_test')
  23. ->see('立即安装');
  24. }
  25. // public function testT()
  26. // {
  27. // $this->visit('/admin_applications')
  28. // ->see('上海科');
  29. // }
  30. }