File tree Expand file tree Collapse file tree 2 files changed +19
-25
lines changed Expand file tree Collapse file tree 2 files changed +19
-25
lines changed Original file line number Diff line number Diff line change @@ -392,31 +392,6 @@ public function testGetMediaOutputDirectoryNameUsesTrimmedVersionOfMediaSourceDi
392392 $ this ->assertSame ('foo ' , Hyde::getMediaOutputDirectory ());
393393 }
394394
395- public function testCanGetSiteMediaOutputDirectory ()
396- {
397- // Todo: Move to MediaFileTest
398-
399- $ this ->assertSame (Hyde::path ('_site/media ' ), MediaFile::outputPath ());
400- }
401-
402- public function testGetSiteMediaOutputDirectoryUsesTrimmedVersionOfMediaSourceDirectory ()
403- {
404- // Todo: Move to MediaFileTest
405-
406- Hyde::setMediaDirectory ('_foo ' );
407- $ this ->assertSame (Hyde::path ('_site/foo ' ), MediaFile::outputPath ());
408- }
409-
410- public function testGetSiteMediaOutputDirectoryUsesConfiguredSiteOutputDirectory ()
411- {
412- // Todo: Move to MediaFileTest
413-
414- Hyde::setOutputDirectory (Hyde::path ('foo ' ));
415- Hyde::setMediaDirectory ('bar ' );
416-
417- $ this ->assertSame (Hyde::path ('foo/bar ' ), MediaFile::outputPath ());
418- }
419-
420395 public function testMediaOutputDirectoryCanBeChangedInConfiguration ()
421396 {
422397 $ this ->assertSame ('_media ' , Hyde::getMediaDirectory ());
Original file line number Diff line number Diff line change @@ -241,4 +241,23 @@ public function testGetMediaOutputPathReturnsAbsolutePath()
241241 {
242242 $ this ->assertSame (Hyde::path ('_site/media ' ), MediaFile::outputPath ());
243243 }
244+
245+ public function testCanGetSiteMediaOutputDirectory ()
246+ {
247+ $ this ->assertSame (Hyde::path ('_site/media ' ), MediaFile::outputPath ());
248+ }
249+
250+ public function testGetSiteMediaOutputDirectoryUsesTrimmedVersionOfMediaSourceDirectory ()
251+ {
252+ Hyde::setMediaDirectory ('_foo ' );
253+ $ this ->assertSame (Hyde::path ('_site/foo ' ), MediaFile::outputPath ());
254+ }
255+
256+ public function testGetSiteMediaOutputDirectoryUsesConfiguredSiteOutputDirectory ()
257+ {
258+ Hyde::setOutputDirectory (Hyde::path ('foo ' ));
259+ Hyde::setMediaDirectory ('bar ' );
260+
261+ $ this ->assertSame (Hyde::path ('foo/bar ' ), MediaFile::outputPath ());
262+ }
244263}
You can’t perform that action at this time.
0 commit comments