Skip to content
Snippets Groups Projects
Commit 558ecfc1 authored by llaffont's avatar llaffont
Browse files

Correction tests twitter

parent fedfdd6f
Branches
Tags
No related merge requests found
......@@ -201,7 +201,8 @@ class ProfilOptionsControllerTwitterLinkWithProfilAdulteTest extends ProfilOptio
public function twitterLinkShouldReturnJavascriptForTweet() {
$this->dispatch('/opac/index/share/on/twitter/titre/Profil+Adulte?url='.urlencode('http://localhost'.BASE_URL.'/index/index'));
$this->assertContains(sprintf("window.open('http://twitter.com/home?status=%s','_blank','location=yes, width=800, height=410')",
urlencode('Profil Adulte http://is.gd/PkdNgD')));
urlencode('Profil Adulte http://is.gd/PkdNgD')),
$this->_response->getBody());
}
......@@ -209,7 +210,8 @@ class ProfilOptionsControllerTwitterLinkWithProfilAdulteTest extends ProfilOptio
public function facebookLinkShouldReturnJavascriptForTweet() {
$this->dispatch('/opac/index/share/on/facebook/titre/Profil+Adulte?url='.urlencode('/index/index'), true);
$this->assertContains(sprintf("window.open('http://www.facebook.com/share.php?u=%s','_blank','location=yes, width=800, height=410')",
urlencode('Profil Adulte http://is.gd/PkdNgD')));
urlencode('Profil Adulte http://is.gd/PkdNgD')),
$this->_response->getBody());
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment