File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ protected function __construct(string $themeDirectory)
72
72
}
73
73
74
74
$ baseName = $ theme ->get_stylesheet ();
75
- $ basePath = $ theme ->get_template_directory ();
75
+ $ basePath = $ theme ->get_stylesheet_directory ();
76
76
$ baseUrl = (string ) trailingslashit ($ theme ->get_stylesheet_directory_uri ());
77
77
78
78
parent ::__construct (
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public function testBasic(): void
56
56
$ themeStub ->expects ('get ' )->with ($ key )->andReturn ($ return );
57
57
}
58
58
$ themeStub ->expects ('get_stylesheet ' )->andReturn ($ expectedBaseName );
59
- $ themeStub ->expects ('get_template_directory ' )->andReturn ($ expectedBasePath );
59
+ $ themeStub ->expects ('get_stylesheet_directory ' )->andReturn ($ expectedBasePath );
60
60
$ themeStub ->expects ('get_stylesheet_directory_uri ' )->andReturn ($ expectedBaseUrl );
61
61
62
62
Functions \expect ('wp_get_theme ' )->with ($ expectedBasePath )->andReturn ($ themeStub );
@@ -109,7 +109,7 @@ public function testChildTheme(): void
109
109
$ themeStub ->shouldReceive ('get ' )->zeroOrMoreTimes ()->andReturnArg (0 );
110
110
111
111
$ themeStub ->expects ('get_stylesheet ' )->andReturn ($ expectedBaseName );
112
- $ themeStub ->expects ('get_template_directory ' )->andReturn ($ expectedBasePath );
112
+ $ themeStub ->expects ('get_stylesheet_directory ' )->andReturn ($ expectedBasePath );
113
113
$ themeStub ->expects ('get_stylesheet_directory_uri ' )->andReturn ($ expectedBaseUrl );
114
114
115
115
Functions \expect ('wp_get_theme ' )->with ($ expectedBasePath )->andReturn ($ themeStub );
You can’t perform that action at this time.
0 commit comments