QuinnInteractive\Seo\Tests\Analysis\TestAnalysis

Synopsis

class TestAnalysis extends Analysis implements TestOnly {
}

Hierarchy

Extends

Implements

  • SilverStripe\Dev\TestOnly

Members

protected

  • $domParser
  • $page\Page|PageHealthExtension
  • $result — int
  • $resultLevel — string
    One of: default, danger, warning or success

Methods

Inherited from QuinnInteractive\Seo\Analysis\Analysis

public

  • getContent() — Fetches the rendered content from the dom parser. This is why it's important that your templates are semantically correct. `<div>` tags should be used for layout and positioning purposes and using `<p>` tags for content is semantically correct. Semantically correct pages tend to rank higher in search engines for various reasons (such as how effectively crawlers parse your website etc.).
  • getPage()
  • getRenderedHtmlDomParser()
  • getResult()
  • inspect()
  • responses() — All analyses must override the `responses()` method to provide response messages and the response level (which is used for the indicator).
  • run() — You must override this in your subclass and perform your own checks. An integer must be returned that references an index of the array you return in your response() method override in your subclass.
  • setPage()