update the test that counts the number of fields in the SSR API response

This commit is contained in:
Leif Singer 2023-11-20 11:40:40 +01:00
parent 0687e86c92
commit 85814deeb6
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class WC_Tests_REST_System_Status_V2 extends WC_REST_Unit_Test_Case {
$environment = (array) $this->fetch_or_get_system_status_data_for_user( self::$administrator_user )['environment']; $environment = (array) $this->fetch_or_get_system_status_data_for_user( self::$administrator_user )['environment'];
// Make sure all expected data is present. // Make sure all expected data is present.
$this->assertEquals( 32, count( $environment ) ); $this->assertEquals( 33, count( $environment ) );
// Test some responses to make sure they match up. // Test some responses to make sure they match up.
$this->assertEquals( get_option( 'home' ), $environment['home_url'] ); $this->assertEquals( get_option( 'home' ), $environment['home_url'] );

View File

@ -120,7 +120,7 @@ class WC_Tests_REST_System_Status extends WC_REST_Unit_Test_Case {
$environment = (array) $this->fetch_or_get_system_status_data_for_user( self::$administrator_user )['environment']; $environment = (array) $this->fetch_or_get_system_status_data_for_user( self::$administrator_user )['environment'];
// Make sure all expected data is present. // Make sure all expected data is present.
$this->assertEquals( 32, count( $environment ) ); $this->assertEquals( 33, count( $environment ) );
// Test some responses to make sure they match up. // Test some responses to make sure they match up.
$this->assertEquals( get_option( 'home' ), $environment['home_url'] ); $this->assertEquals( get_option( 'home' ), $environment['home_url'] );