Code Duplication    Length = 11-14 lines in 2 locations

tests/UserDefinedFormControllerTest.php 2 locations

@@ 208-221 (lines=14) @@
205
		$this->assertEquals($actions, $expected);
206
	}
207
208
	public function testRenderingIntoFormTemplate() {
209
		$form = $this->setupFormFrontend();
210
211
		$form->Content = 'This is some content without a form nested between it';
212
		$form->doPublish();
213
214
		$controller = new UserDefinedFormControllerTest_Controller($form);
215
216
		// check to see if $Form is replaced to inside the content
217
		$index = new ArrayData($controller->index());
218
		$parser = new CSSContentParser($index->renderWith(array('UserDefinedFormControllerTest')));
219
220
		$this->checkTemplateIsCorrect($parser);
221
	}
222
223
	public function testRenderingIntoTemplateWithSubstringReplacement() {
224
		$form = $this->setupFormFrontend();
@@ 223-233 (lines=11) @@
220
		$this->checkTemplateIsCorrect($parser);
221
	}
222
223
	public function testRenderingIntoTemplateWithSubstringReplacement() {
224
		$form = $this->setupFormFrontend();
225
226
		$controller = new UserDefinedFormControllerTest_Controller($form);
227
228
		// check to see if $Form is replaced to inside the content
229
		$index = new ArrayData($controller->index());
230
		$parser = new CSSContentParser($index->renderWith(array('UserDefinedFormControllerTest')));
231
232
		$this->checkTemplateIsCorrect($parser);
233
	}
234
	/**
235
	 * Publish a form for use on the frontend
236
	 *