@@ -76,6 +76,12 @@ public function test_all_page_types_can_be_compiled()
7676 $ this ->file ('_docs/docs.md ' );
7777
7878 $ this ->artisan ('build ' )
79+ ->expectsOutput ('Creating Html Pages... ' )
80+ ->expectsOutput ('Creating Blade Pages... ' )
81+ ->expectsOutput ('Creating Markdown Pages... ' )
82+ ->expectsOutput ('Creating Markdown Posts... ' )
83+ ->expectsOutput ('Creating Documentation Pages... ' )
84+ ->doesntExpectOutputToContain ('Creating ' )
7985 ->assertExitCode (0 );
8086
8187 $ this ->assertFileExists (Hyde::path ('_site/html.html ' ));
@@ -91,6 +97,26 @@ public function test_all_page_types_can_be_compiled()
9197 unlink (Hyde::path ('_site/docs/docs.html ' ));
9298 }
9399
100+ public function test_only_progress_bars_for_types_with_pages_are_shown ()
101+ {
102+ $ this ->file ('_pages/blade.blade.php ' );
103+ $ this ->file ('_pages/markdown.md ' );
104+
105+ $ this ->artisan ('build ' )
106+ ->doesntExpectOutput ('Creating Html Pages... ' )
107+ ->expectsOutput ('Creating Blade Pages... ' )
108+ ->expectsOutput ('Creating Markdown Pages... ' )
109+ ->doesntExpectOutput ('Creating Markdown Posts... ' )
110+ ->doesntExpectOutput ('Creating Documentation Pages... ' )
111+ ->doesntExpectOutputToContain ('Creating ' )
112+ ->assertExitCode (0 );
113+
114+ $ this ->assertFileExists (Hyde::path ('_site/blade.html ' ));
115+ $ this ->assertFileExists (Hyde::path ('_site/markdown.html ' ));
116+ unlink (Hyde::path ('_site/blade.html ' ));
117+ unlink (Hyde::path ('_site/markdown.html ' ));
118+ }
119+
94120 public function test_print_initial_information_allows_api_to_be_disabled ()
95121 {
96122 $ this ->artisan ('build --no-api ' )
0 commit comments