From 5ef99a76a972c65cb9caac0a7f58558c6036d497 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Fri, 25 Oct 2019 11:24:54 +1300 Subject: [PATCH] Fix unit test --- tests/BlogTagTest.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/BlogTagTest.php b/tests/BlogTagTest.php index d7705d2..c0d5324 100755 --- a/tests/BlogTagTest.php +++ b/tests/BlogTagTest.php @@ -61,14 +61,15 @@ class BlogTagTest extends FunctionalTest */ public function testAllowMultibyteUrlSegment() { + /** @var Blog $blog */ $blog = $this->objFromFixture(Blog::class, 'FirstBlog'); $tag = new BlogTag(); - $tag->BlogID = $blog->ID; + $tag->setBlogID($blog->ID); $tag->Title = 'تست'; $tag->write(); // urlencoded $this->assertEquals('%D8%AA%D8%B3%D8%AA', $tag->URLSegment); - $link = Controller::join_links($tag->Blog()->Link(), 'tag', '%D8%AA%D8%B3%D8%AA'); + $link = Controller::join_links($blog->Link(), 'tag', '%D8%AA%D8%B3%D8%AA'); $this->assertEquals($link, $tag->getLink()); }