diff --git a/tests/integration/Config/InstallerTest.php b/tests/integration/Config/InstallerTest.php index efea9ea2c3..80239b9fc3 100644 --- a/tests/integration/Config/InstallerTest.php +++ b/tests/integration/Config/InstallerTest.php @@ -43,19 +43,19 @@ class InstallerTest extends \MailPoetTest { 'retrievePluginInformation' => function () { $obj = new \stdClass(); $obj->slug = $this->slug; - $obj->pluginName = 'MailPoet Premium'; - $obj->newVersion = '3.0.0-alpha.0.0.3.1'; + $obj->name = 'MailPoet Premium'; + $obj->new_version = '3.0.0-alpha.0.0.3.1'; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps $obj->requires = '4.6'; $obj->tested = '4.7.4'; $obj->downloaded = 12540; - $obj->lastUpdated = date('Y-m-d'); + $obj->last_updated = date('Y-m-d'); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps $obj->sections = [ 'description' => 'The new version of the Premium plugin', 'another_section' => 'This is another section', 'changelog' => 'Some new features', ]; - $obj->downloadLink = home_url() . '/wp-content/uploads/mailpoet-premium.zip'; - $obj->package = $obj->downloadLink; + $obj->download_link = home_url() . '/wp-content/uploads/mailpoet-premium.zip'; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps + $obj->package = $obj->download_link; // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps return $obj; }, ], @@ -63,8 +63,8 @@ class InstallerTest extends \MailPoetTest { ); $result = $installer->getPluginInformation(false, 'plugin_information', $args); expect($result->slug)->equals($this->slug); - expect($result->newVersion)->notEmpty(); - expect($result->downloadLink)->notEmpty(); + expect($result->new_version)->notEmpty(); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps + expect($result->download_link)->notEmpty(); // phpcs:ignore Squiz.NamingConventions.ValidVariableName.NotCamelCaps expect($result->package)->notEmpty(); }