mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
MINOR Removed backticks from queries in UserDefinedFormEditorTest because they break SQL Server and PostgreSQL
This commit is contained in:
parent
4cdeb3d20f
commit
3fe18477d8
@ -22,7 +22,7 @@ class UserDefinedFormEditorTest extends FunctionalTest {
|
|||||||
$id = $this->form->ID;
|
$id = $this->form->ID;
|
||||||
$this->form->Fields()->add(new EditableFormField());
|
$this->form->Fields()->add(new EditableFormField());
|
||||||
$this->form->doPublish();
|
$this->form->doPublish();
|
||||||
$live = Versioned::get_one_by_stage("UserDefinedForm", "Live", "`UserDefinedForm`.ID = $id");
|
$live = Versioned::get_one_by_stage("UserDefinedForm", "Live", "UserDefinedForm.ID = $id");
|
||||||
$this->assertEquals($live->Fields()->Count(), 1);
|
$this->assertEquals($live->Fields()->Count(), 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -31,8 +31,8 @@ class UserDefinedFormEditorTest extends FunctionalTest {
|
|||||||
$this->form->Fields()->removeAll();
|
$this->form->Fields()->removeAll();
|
||||||
$this->form->Fields()->add(new EditableFormField());
|
$this->form->Fields()->add(new EditableFormField());
|
||||||
$this->form->doUnPublish();
|
$this->form->doUnPublish();
|
||||||
$live = Versioned::get_one_by_stage("UserDefinedForm", "Live", "`UserDefinedForm`.ID = $id");
|
$live = Versioned::get_one_by_stage("UserDefinedForm", "Live", "UserDefinedForm.ID = $id");
|
||||||
$stage = Versioned::get_one_by_stage("UserDefinedForm", "Stage", "`UserDefinedForm`.ID = $id");
|
$stage = Versioned::get_one_by_stage("UserDefinedForm", "Stage", "UserDefinedForm.ID = $id");
|
||||||
$this->assertEquals($live, false);
|
$this->assertEquals($live, false);
|
||||||
$this->assertEquals($stage->Fields()->Count(), 1);
|
$this->assertEquals($stage->Fields()->Count(), 1);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user