Fix indentation issues on blogentrytest

This commit is contained in:
Morven Lewis-Everley 2014-08-06 16:09:52 +01:00
parent c63ccfc7c7
commit 3fa8db5c1d

View File

@ -7,28 +7,28 @@
class BlogEntryTest extends SapphireTest { class BlogEntryTest extends SapphireTest {
static $fixture_file = 'blog/tests/BlogTest.yml'; static $fixture_file = 'blog/tests/BlogTest.yml';
/** /**
* Tests that the blog entry populate defaults works * Tests that the blog entry populate defaults works
*/ */
public function testPopulateDefaults() { public function testPopulateDefaults() {
$member = $this->objFromFixture("Member", "blogOwner1"); $member = $this->objFromFixture("Member", "blogOwner1");
$member->logIn(); $member->logIn();
// Create manually, as from fixture seems to create entries // Create manually, as from fixture seems to create entries
// multiple times // multiple times
$entry = BlogEntry::create(); $entry = BlogEntry::create();
$entry->Title = "Test post"; $entry->Title = "Test post";
$entry->URLSegment = "test-post"; $entry->URLSegment = "test-post";
$entry->Tags = "tag1,tag2"; $entry->Tags = "tag1,tag2";
// We cant test by the second, as that will most likely fail // We cant test by the second, as that will most likely fail
$now = date('Y-m-d', strtotime('now')); $now = date('Y-m-d', strtotime('now'));
$this->assertContains($now, $entry->Date); $this->assertContains($now, $entry->Date);
$this->assertEquals($member->getName(), $entry->Author); $this->assertEquals($member->getName(), $entry->Author);
$member->logOut(); $member->logOut();
} }
/** /**
* Tests BBCode functionality * Tests BBCode functionality