Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
dpanta94 committed Nov 8, 2024
1 parent f964859 commit 967d693
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/wpunit/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ public function should_set_hook_prefix() {
}

public function paths_provider() {
yield 'plugin' => [ WP_PLUGIN_DIR . 'assets/', '/var/www/html/wp-content/plugins/assets/' ];
yield 'theme' => [ get_theme_file_path() . 'assets/', get_theme_file_path() . '/var/www/html/wp-content/themes/assets/' ];
yield 'mu-plugin' => [ WPMU_PLUGIN_DIR . 'assets/', '/var/www/html/wp-content/mu-plugins/assets/' ];
yield 'content' => [ WP_CONTENT_DIR . 'assets/', '/var/www/html/wp-content/assets/' ];
yield 'plugin' => [ WP_PLUGIN_DIR . '/assets/', '/var/www/html/wp-content/plugins/assets/' ];
yield 'theme' => [ get_theme_file_path() . '/assets/', get_theme_file_path() . '/var/www/html/wp-content/themes/assets/' ];
yield 'mu-plugin' => [ WPMU_PLUGIN_DIR . '/assets/', '/var/www/html/wp-content/mu-plugins/assets/' ];
yield 'content' => [ WP_CONTENT_DIR . '/assets/', '/var/www/html/wp-content/assets/' ];
yield 'root' => [ ABSPATH . 'assets/', '/var/www/html/assets/' ];
yield 'relative' => [ 'src/resources/', 'src/resources/' ];
}
Expand All @@ -36,7 +36,7 @@ public function paths_provider() {
* @test
* @dataProvider paths_provider
*/
public function should_normalize_path( $path, $expected ) {
public function should_set_root_path_correctly( $path, $expected ) {
Config::set_path( $path );
$this->assertEquals( $expected, Config::get_path( $path ) );
}
Expand Down

0 comments on commit 967d693

Please sign in to comment.