Skip to content

Commit

Permalink
Fix the unit test for json+ld
Browse files Browse the repository at this point in the history
  • Loading branch information
Joost de Valk committed Sep 9, 2014
1 parent a9d1a08 commit 9c101ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test-class-wpseo-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ public function test_json_ld() {

$home_url = trailingslashit( home_url() );
$search_url = $home_url . '?s={search_term}';
$this->run_json_ld_test( '<script type="application/ld+json">{ "@context": "http://schema.org", "@type": "WebSite", "url": "' . $home_url . '", "potentialAction": { "@type": "SearchAction", "target": "' . $search_url .'", "query-input": "required name=search_term" } }</script>' );
$this->run_json_ld_test( '<script type="application/ld+json">{ "@context": "http://schema.org", "@type": "WebSite", "url": "' . $home_url . '", "potentialAction": { "@type": "SearchAction", "target": "' . $search_url .'", "query-input": "required name=search_term" } }</script>' . "\n" );
}

/**
Expand Down

0 comments on commit 9c101ba

Please sign in to comment.