Version 0.16.5

Hotfix: Adding a new note meant some tests were running againt the wron
 note.
 -----BEGIN PGP SIGNATURE-----
 
 iJUEABMKAB0WIQSEGbWh2ITK9LCvj7MbLHavsWyFmwUCWtMoAAAKCRAbLHavsWyF
 m7WpAX9oxvpfK8tI3MmI3SW5jddT4NXfkmCOI8aj7/v/GlHVztimORV/UWl17OK7
 Oz/tWScBgLuxrkd1+stzwnYFxQae6Kiom6zX9aM5d/92Ed/He22rZnd2T2nGFTP+
 t3S1WvdUtw==
 =VtPu
 -----END PGP SIGNATURE-----

Merge tag 'v0.16.5' into develop

Version 0.16.5

Hotfix: Adding a new note meant some tests were running againt the wron
note.
This commit is contained in:
Jonny Barnes 2018-04-15 11:23:21 +01:00
commit b097dc0f94
2 changed files with 6 additions and 3 deletions

View file

@ -1,5 +1,8 @@
# Changelog
## Version 0.16.5
- Hotfix: adding a new note meant some tests were running against the wrong note
## Version 0.16.4
- Improve CSP headers
- Fix the map style menu in mapbox maps

View file

@ -29,7 +29,7 @@ class NotesTest extends TestCase
public function test_default_image_used_in_makehcards_method()
{
$expected = '<p>Hi <span class="u-category h-card mini-h-card"><a class="u-url p-name" href="http://tantek.com">Tantek Çelik</a><span class="hovercard"> <a class="u-url" href="https://twitter.com/t"><img class="social-icon" src="/assets/img/social-icons/twitter.svg"> t</a><img class="u-photo" alt="" src="/assets/profile-images/default-image"></span></span></p>' . PHP_EOL;
$note = Note::find(13);
$note = Note::find(14);
$this->assertEquals($expected, $note->note);
}
@ -41,7 +41,7 @@ class NotesTest extends TestCase
public function test_specific_profile_image_used_in_makehcards_method()
{
$expected = '<p>Hi <span class="u-category h-card mini-h-card"><a class="u-url p-name" href="https://aaronparecki.com">Aaron Parecki</a><span class="hovercard"><a class="u-url" href="https://www.facebook.com/123456"><img class="social-icon" src="/assets/img/social-icons/facebook.svg"> Facebook</a> <img class="u-photo" alt="" src="/assets/profile-images/aaronparecki.com/image"></span></span></p>' . PHP_EOL;
$note = Note::find(14);
$note = Note::find(15);
$this->assertEquals($expected, $note->note);
}
@ -53,7 +53,7 @@ class NotesTest extends TestCase
public function test_twitter_link_created_when_no_contact_found()
{
$expected = '<p>Hi <a href="https://twitter.com/bob">@bob</a></p>' . PHP_EOL;
$note = Note::find(15);
$note = Note::find(16);
$this->assertEquals($expected, $note->note);
}