objFromFixture('BlogEntry', 'testpost'); $entry->Content = "[url=admin]the CMS[/url]"; $this->assertEquals('

the CMS

', $entry->Content()->value); BlogEntry::$allow_wysiwyg_editing = $tmpFlag; } /** * Tests BlogEntry::Content method */ public function testContent() { $tmpFlag = BlogEntry::$allow_wysiwyg_editing; BlogEntry::$allow_wysiwyg_editing = true; $entry = $this->objFromFixture('BlogEntry', 'testpost'); $entry->Content = 'the CMS'; $this->assertEquals('the CMS', $entry->Content()); BlogEntry::$allow_wysiwyg_editing = $tmpFlag; } /** * Tests TagCollection parsing of tags */ public function testTagging() { $entry = new BlogEntry(); $entry->Tags = 'damian,Bob, andrew , multiple words, thing,tag,item , Andrew'; $tags = $entry->TagNames(); ksort($tags); $this->assertEquals(array( 'andrew' => 'Andrew', 'bob' => 'Bob', 'damian' => 'damian', 'item' => 'item', 'multiple words' => 'multiple words', 'tag' => 'tag', 'thing' => 'thing' ), $tags); } }