diff --git a/tests/BlogTagTest.php b/tests/BlogTagTest.php index 2a6f35f..3ab1194 100755 --- a/tests/BlogTagTest.php +++ b/tests/BlogTagTest.php @@ -203,4 +203,17 @@ class BlogTagTest extends FunctionalTest $this->assertEquals(BlogTag::DUPLICATE_EXCEPTION, $messages[0]['messageType']); } } + + public function testBlogTagUrlSegmentsAreAutomaticallyUpdated() + { + $tag = new BlogTag; + $tag->Title = "a test"; + $tag->write(); + $this->assertEquals($tag->URLSegment, "a-test"); + + $tag->Title = "another test"; + $tag->write(); + $this->assertEquals($tag->URLSegment, "another-test"); + } + }