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()); }