diff --git a/tests/Browser/ArticlesTest.php b/tests/Browser/ArticlesTest.php new file mode 100644 index 00000000..2bb7cba2 --- /dev/null +++ b/tests/Browser/ArticlesTest.php @@ -0,0 +1,61 @@ +browse(function ($browser) { + $browser->visit('/blog') + ->assertSee('My New Blog'); + }); + } + + /** + * Test the `/blog` page with a year scoping results. + * + * @return void + */ + public function test_articles_page_with_specified_year() + { + $this->browse(function ($browser) { + $browser->visit('/blog/2016') + ->assertSee('My New Blog'); + }); + } + + /** + * Test the `/blog` page with a year and month scoping results. + * + * @return void + */ + public function test_articles_page_with_specified_year_and_month() + { + $this->browse(function ($browser) { + $browser->visit('/blog/2016/01') + ->assertSee('My New Blog'); + }); + } + + /** + * Test a single article page. + * + * @return void + */ + public function test_single_article_page() + { + $this->browse(function ($browser) { + $browser->visit('/blog/2016/01/my-new-blog') + ->assertSee('My New Blog'); + }); + } +} diff --git a/tests/Feature/ArticlesRSSTest.php b/tests/Feature/ArticlesRSSTest.php new file mode 100644 index 00000000..5bb10e35 --- /dev/null +++ b/tests/Feature/ArticlesRSSTest.php @@ -0,0 +1,22 @@ +get('/feed'); + $response->assertHeader('Content-Type', 'application/rss+xml'); + } +}