getProperty( 'instance' ); $prop->setAccessible( true ); $prop->setValue( null, null ); $this->adapter = new WPDO_HivePress_Memberships_Adapter(); } public function test_implements_adapter_interface(): void { $this->assertInstanceOf( WPDO_HivePress_Adapter::class, $this->adapter ); } public function test_identity(): void { $this->assertSame( 'hivepress-memberships', $this->adapter->plugin_slug() ); $this->assertSame( 'HivePress\\Memberships\\Plugin', $this->adapter->detection_class() ); $this->assertSame( 'HIVEPRESS_MEMBERSHIPS_VERSION', $this->adapter->detection_const() ); $this->assertSame( '2.0.0', $this->adapter->minimum_addon_version() ); } public function test_score_aggregates_to_perfect_ten(): void { $score = $this->adapter->suitability_score(); $this->assertSame( 10.0, $score['aggregate'] ); } }