mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
BUGFIX: columns quoted properly
This commit is contained in:
parent
c31bb7e6b6
commit
7ca1e34476
@ -31,7 +31,7 @@ class BlogHolderFunctionalTest extends FunctionalTest {
|
||||
'SecurityID' => $securityID
|
||||
);
|
||||
$response = $this->post('blog/BlogEntryForm', $data);
|
||||
$this->assertFalse(DataObject::get_one('BlogEntry', sprintf("Title = 'Disallowed'")));
|
||||
$this->assertFalse(DataObject::get_one('BlogEntry', sprintf("\"Title\" = 'Disallowed'")));
|
||||
|
||||
// with login
|
||||
$blogEditor = $this->objFromFixture('Member', 'blog_editor');
|
||||
@ -47,6 +47,6 @@ class BlogHolderFunctionalTest extends FunctionalTest {
|
||||
);
|
||||
$response = $this->post('blog/BlogEntryForm', $data);
|
||||
|
||||
$this->assertType('BlogEntry', DataObject::get_one('BlogEntry', sprintf("Title = 'Allowed'")));
|
||||
$this->assertType('BlogEntry', DataObject::get_one('BlogEntry', sprintf("\"Title\" = 'Allowed'")));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user