runner = $runner; $this->reports = $reports; $this->reports->set_test_identifier( $this->get_test_identifier() ); $this->set_runner( $this->runner ); } /** * Returns a human-readable label for this health check. * * @return string The human-readable label. */ public function get_test_label() { return \__( 'Postname permalink', 'wordpress-seo' ); } /** * Returns the WordPress-friendly health check result. * * @return string[] The WordPress-friendly health check result. */ protected function get_result() { if ( $this->runner->is_successful() ) { return $this->reports->get_success_result(); } return $this->reports->get_has_no_postname_in_permalink_result(); } }