Last active
August 29, 2015 14:11
-
-
Save rizqidjamaluddin/be46b1bc03be6d3a6360 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * @test | |
| */ | |
| public function users_can_post_links_in_their_profile() | |
| { | |
| $mario = $this->registerAndLoginAsMario(); | |
| $set = $this->callJson('PUT', "/api/users/{$mario->hash}/profile", ['bio' => "A URL: http://www.google.com"]); | |
| $fetch = $this->callJson('GET', "/api/users/{$mario->hash}/profile"); | |
| $this->assertEquals("A URL: http://www.google.com", $fetch->profiles[0]->bio); | |
| $this->assertEquals( | |
| '<p>A URL: <a href="http://www.google.com" target="_blank">http://www.google.com</a></p>', | |
| $fetch->profiles[0]->html_bio | |
| ); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment