File tree Expand file tree Collapse file tree 3 files changed +5
-10
lines changed
Expand file tree Collapse file tree 3 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ This serves two purposes:
2828- Removed ` RenderData:.getCurrentRoute ` method deprecated in v1.0.0-RC.2
2929- Removed deprecated ` HydePage::$canonicalUrl ` property (replaced with ` HydePage::getCanonicalUrl() ` ).
3030- Removed deprecated ` SourceFile::withoutDirectoryPrefix ` method only used in one test.
31+ - Removed deprecated ` CreatesNewPageSourceFile::getOutputPath ` method as the save method now returns the path.
3132
3233### Fixed
3334- Fixed the blog post article view where metadata assembly used legacy hard-coded paths instead of dynamic path information.
Original file line number Diff line number Diff line change @@ -62,12 +62,6 @@ public function save(): string
6262 return $ this ->outputPath ;
6363 }
6464
65- /** @deprecated This method may be removed as the save method now returns the path. */
66- public function getOutputPath (): string
67- {
68- return $ this ->outputPath ;
69- }
70-
7165 protected function parseTitle (string $ title ): string
7266 {
7367 return Str::afterLast ($ title , '/ ' );
Original file line number Diff line number Diff line change @@ -137,16 +137,16 @@ public function test_that_the_file_path_can_be_returned()
137137 {
138138 $ this ->assertSame (
139139 Hyde::path ('_pages/test-page.md ' ),
140- (new CreatesNewPageSourceFile ('Test Page ' ))->getOutputPath ()
140+ (new CreatesNewPageSourceFile ('Test Page ' ))->save ()
141141 );
142142
143143 $ this ->assertSame (
144144 Hyde::path ('_pages/test-page.blade.php ' ),
145- (new CreatesNewPageSourceFile ('Test Page ' , BladePage::class))->getOutputPath ()
145+ (new CreatesNewPageSourceFile ('Test Page ' , BladePage::class))->save ()
146146 );
147147
148- // Filesystem::unlink('_pages/test-page.md');
149- // Filesystem::unlink('_pages/test-page.blade.php');
148+ Filesystem::unlink ('_pages/test-page.md ' );
149+ Filesystem::unlink ('_pages/test-page.blade.php ' );
150150 }
151151
152152 public function test_file_is_created_using_slug_generated_from_title ()
You can’t perform that action at this time.
0 commit comments