Skip to content

Commit

Permalink
rm wrong uploads test csae
Browse files Browse the repository at this point in the history
  • Loading branch information
pwtyler committed Dec 5, 2024
1 parent 86445f8 commit 32570ca
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions tests/phpunit/test-solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -593,22 +593,14 @@ public function test_custom_schema_file_path_default() {
$this->assertContains($expected, $actual);
}

public function test_custom_schema_file_path_wp_content_moved() {
define( 'UPLOADS', trailingslashit( WP_CONTENT_DIR ) . 'files' );
$expected = "wp-content/files/solr-for-wordpress-on-pantheon/schema.xml";
$actual = SolrPower_Api::custom_schema_file_path();

$this->assertContains($expected, $actual);
}

public function test_custom_schema_file_path_with_filter() {
$expected = "/code/wp-content/solr-for-wordpress-elsewhere-on-pantheon/schema.xml";
add_filter(
'solr_power_customer_schema_file_path',
function( $custom_schema_file_path ) {
return $expected;
return "/code/wp-content/solr-for-wordpress-elsewhere-on-pantheon/schema.xml";
},
);
$expected = "/code/wp-content/solr-for-wordpress-elsewhere-on-pantheon/schema.xml";
$actual = SolrPower_Api::custom_schema_file_path();

$this->assertEquals($expected, $actual);
Expand Down

0 comments on commit 32570ca

Please sign in to comment.