@@ -24,7 +24,7 @@ class PageCollectionTest extends TestCase
2424{
2525 public function test_boot_method_creates_new_page_collection_and_discovers_pages_automatically ()
2626 {
27- $ collection = PageCollection::boot (Hyde::getInstance ());
27+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( );
2828 $ this ->assertInstanceOf (PageCollection::class, $ collection );
2929 $ this ->assertInstanceOf (Collection::class, $ collection );
3030
@@ -37,7 +37,7 @@ public function test_boot_method_creates_new_page_collection_and_discovers_pages
3737 public function test_blade_pages_are_discovered ()
3838 {
3939 $ this ->file ('_pages/foo.blade.php ' );
40- $ collection = PageCollection::boot (Hyde::getInstance ());
40+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( );
4141
4242 $ this ->assertArrayHasKey ('_pages/foo.blade.php ' , $ collection ->toArray ());
4343 $ this ->assertEquals (new BladePage ('foo ' ), $ collection ->get ('_pages/foo.blade.php ' ));
@@ -46,7 +46,7 @@ public function test_blade_pages_are_discovered()
4646 public function test_markdown_pages_are_discovered ()
4747 {
4848 $ this ->file ('_pages/foo.md ' );
49- $ collection = PageCollection::boot (Hyde::getInstance ());
49+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( );
5050
5151 $ this ->assertArrayHasKey ('_pages/foo.md ' , $ collection ->toArray ());
5252 $ this ->assertEquals (new MarkdownPage ('foo ' ), $ collection ->get ('_pages/foo.md ' ));
@@ -55,7 +55,7 @@ public function test_markdown_pages_are_discovered()
5555 public function test_markdown_posts_are_discovered ()
5656 {
5757 $ this ->file ('_posts/foo.md ' );
58- $ collection = PageCollection::boot (Hyde::getInstance ());
58+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( );
5959
6060 $ this ->assertArrayHasKey ('_posts/foo.md ' , $ collection ->toArray ());
6161 $ this ->assertEquals (new MarkdownPost ('foo ' ), $ collection ->get ('_posts/foo.md ' ));
@@ -64,15 +64,15 @@ public function test_markdown_posts_are_discovered()
6464 public function test_documentation_pages_are_discovered ()
6565 {
6666 $ this ->file ('_docs/foo.md ' );
67- $ collection = PageCollection::boot (Hyde::getInstance ());
67+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( );
6868 $ this ->assertArrayHasKey ('_docs/foo.md ' , $ collection ->toArray ());
6969 $ this ->assertEquals (new DocumentationPage ('foo ' ), $ collection ->get ('_docs/foo.md ' ));
7070 }
7171
7272 public function test_get_page_returns_parsed_page_object_for_given_source_path ()
7373 {
7474 $ this ->file ('_pages/foo.blade.php ' );
75- $ collection = PageCollection::boot (Hyde::getInstance ());
75+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( );
7676 $ this ->assertEquals (new BladePage ('foo ' ), $ collection ->getPage ('_pages/foo.blade.php ' ));
7777 }
7878
@@ -86,7 +86,7 @@ public function test_get_pages_returns_collection_of_pages_of_given_class()
8686 $ this ->file ('_docs/foo.md ' );
8787 $ this ->file ('_pages/foo.html ' );
8888
89- $ collection = PageCollection::boot (Hyde::getInstance ());
89+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( );
9090 $ this ->assertCount (5 , $ collection );
9191
9292 $ this ->assertContainsOnlyInstancesOf (BladePage::class, $ collection ->getPages (BladePage::class));
@@ -114,7 +114,7 @@ public function test_get_pages_returns_all_pages_when_not_supplied_with_class_st
114114 $ this ->file ('_docs/foo.md ' );
115115 $ this ->file ('_pages/foo.html ' );
116116
117- $ collection = PageCollection::boot (Hyde::getInstance ())->getPages ();
117+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( )->getPages ();
118118 $ this ->assertCount (5 , $ collection );
119119
120120 $ this ->assertEquals (new BladePage ('foo ' ), $ collection ->get ('_pages/foo.blade.php ' ));
@@ -129,7 +129,7 @@ public function test_get_pages_returns_all_pages_when_not_supplied_with_class_st
129129 public function test_get_pages_returns_empty_collection_when_no_pages_are_discovered ()
130130 {
131131 $ this ->withoutDefaultPages ();
132- $ collection = PageCollection::boot (Hyde::getInstance ());
132+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( );
133133 $ this ->assertEmpty ($ collection ->getPages ());
134134 $ this ->restoreDefaultPages ();
135135 }
@@ -145,7 +145,7 @@ public function test_pages_are_not_discovered_for_disabled_features()
145145 touch ('_posts/post.md ' );
146146 touch ('_docs/doc.md ' );
147147
148- $ this ->assertEmpty (PageCollection::boot (Hyde::getInstance ()));
148+ $ this ->assertEmpty (PageCollection::init (Hyde::getInstance ())-> boot ( ));
149149
150150 unlink ('_pages/blade.blade.php ' );
151151 unlink ('_pages/markdown.md ' );
@@ -170,7 +170,7 @@ public function test_pages_with_custom_source_directories_are_discovered_properl
170170 touch (Hyde::path ('.source/posts/foo.md ' ));
171171 touch (Hyde::path ('.source/docs/foo.md ' ));
172172
173- $ collection = PageCollection::boot (Hyde::getInstance ())->getPages ();
173+ $ collection = PageCollection::init (Hyde::getInstance ())-> boot ( )->getPages ();
174174 $ this ->assertCount (4 , $ collection );
175175
176176 $ this ->assertEquals (new BladePage ('foo ' ), $ collection ->get ('.source/pages/foo.blade.php ' ));
0 commit comments