Skip to content

Commit

Permalink
Recipe 9
Browse files Browse the repository at this point in the history
  • Loading branch information
LearningLaravel committed Jan 31, 2017
1 parent c0bab6e commit edfad4a
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions tests/Feature/BlogTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace Tests\Feature;

use Tests\TestCase;
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
use Illuminate\Foundation\Testing\DatabaseTransactions;

class BlogTest extends TestCase
{
/**
* A basic test example.
*
* @return void
*/
public function testBlogResponseIsValid()
{
$response = $this->get('/json');
$response->assertStatus(200);
}
}
2 changes: 1 addition & 1 deletion tests/Feature/ExampleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ExampleTest extends TestCase
*/
public function testBasicTest()
{
$response = $this->get('/');
$response = $this->get('/blog');

$response->assertStatus(200);
}
Expand Down

0 comments on commit edfad4a

Please sign in to comment.