objFromFixture('BlogEntry', 'testpost'); $entry->Content = "[url=admin]the CMS[/url]"; $this->assertEquals('
', $entry->Content()->value); BlogEntry::$allow_wysiwyg_editing = $tmpFlag; } 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; } }