ExampleTest.php 717 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Tests\Feature;
  3. use Tests\TestCase;
  4. use Illuminate\Foundation\Testing\WithoutMiddleware;
  5. use Illuminate\Foundation\Testing\DatabaseMigrations;
  6. use Illuminate\Foundation\Testing\DatabaseTransactions;
  7. class ExampleTest extends TestCase
  8. {
  9. /**
  10. * A basic test example.
  11. *
  12. * @return void
  13. */
  14. public function testBasicTest()
  15. {
  16. $response = $this->get('/');
  17. $response->assertStatus(200);
  18. $response->assertSee('The Bootstrap Blog');
  19. }
  20. /**
  21. * A basic sad test example.
  22. *
  23. * @return void
  24. */
  25. public function testBasicSadTest()
  26. {
  27. $response = $this->get('/not-there');
  28. $response->assertStatus(404);
  29. }
  30. }