mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 09:05:58 +00:00
BUGFIX: columns quoted properly
This commit is contained in:
parent
c31bb7e6b6
commit
7ca1e34476
@ -31,7 +31,7 @@ class BlogHolderFunctionalTest extends FunctionalTest {
|
|||||||
'SecurityID' => $securityID
|
'SecurityID' => $securityID
|
||||||
);
|
);
|
||||||
$response = $this->post('blog/BlogEntryForm', $data);
|
$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
|
// with login
|
||||||
$blogEditor = $this->objFromFixture('Member', 'blog_editor');
|
$blogEditor = $this->objFromFixture('Member', 'blog_editor');
|
||||||
@ -47,6 +47,6 @@ class BlogHolderFunctionalTest extends FunctionalTest {
|
|||||||
);
|
);
|
||||||
$response = $this->post('blog/BlogEntryForm', $data);
|
$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…
x
Reference in New Issue
Block a user