mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
Fix indentation issues on blogentrytest
This commit is contained in:
parent
c63ccfc7c7
commit
3fa8db5c1d
@ -7,28 +7,28 @@
|
||||
class BlogEntryTest extends SapphireTest {
|
||||
static $fixture_file = 'blog/tests/BlogTest.yml';
|
||||
|
||||
/**
|
||||
* Tests that the blog entry populate defaults works
|
||||
*/
|
||||
public function testPopulateDefaults() {
|
||||
$member = $this->objFromFixture("Member", "blogOwner1");
|
||||
$member->logIn();
|
||||
|
||||
// Create manually, as from fixture seems to create entries
|
||||
// multiple times
|
||||
/**
|
||||
* Tests that the blog entry populate defaults works
|
||||
*/
|
||||
public function testPopulateDefaults() {
|
||||
$member = $this->objFromFixture("Member", "blogOwner1");
|
||||
$member->logIn();
|
||||
|
||||
// Create manually, as from fixture seems to create entries
|
||||
// multiple times
|
||||
$entry = BlogEntry::create();
|
||||
$entry->Title = "Test post";
|
||||
$entry->URLSegment = "test-post";
|
||||
$entry->Tags = "tag1,tag2";
|
||||
|
||||
// We cant test by the second, as that will most likely fail
|
||||
$now = date('Y-m-d', strtotime('now'));
|
||||
|
||||
$this->assertContains($now, $entry->Date);
|
||||
$this->assertEquals($member->getName(), $entry->Author);
|
||||
|
||||
$member->logOut();
|
||||
}
|
||||
$entry->Title = "Test post";
|
||||
$entry->URLSegment = "test-post";
|
||||
$entry->Tags = "tag1,tag2";
|
||||
|
||||
// We cant test by the second, as that will most likely fail
|
||||
$now = date('Y-m-d', strtotime('now'));
|
||||
|
||||
$this->assertContains($now, $entry->Date);
|
||||
$this->assertEquals($member->getName(), $entry->Author);
|
||||
|
||||
$member->logOut();
|
||||
}
|
||||
|
||||
/**
|
||||
* Tests BBCode functionality
|
||||
|
Loading…
Reference in New Issue
Block a user