Code Duplication    Length = 7-8 lines in 5 locations

tests/unit/CheckboxTest.php 1 location

@@ 32-38 (lines=7) @@
29
	}
30
31
	/** @test */
32
	public function it_renders_model_values()
33
	{
34
		$form = $this->form();
35
		$form->defaults($this->model(['foo'=>1]));
36
		$form->checkbox('foo');
37
		$this->assertContains('checked="checked"', $form->render());
38
	}
39
40
	/** @test */
41
	public function it_can_fill_model_values()

tests/unit/EmailTest.php 1 location

@@ 24-30 (lines=7) @@
21
	}	
22
23
	/** @test */
24
	public function it_renders_model_values()
25
	{
26
		$form = $this->form();
27
		$form->defaults($this->model(['foo'=>'bar']));
28
		$form->email('foo');
29
		$this->assertContains('<input name="foo" value="bar"', $form->render());
30
	}
31
32
	/** @test */
33
	public function it_can_fill_model_values()

tests/unit/NumberTest.php 1 location

@@ 24-30 (lines=7) @@
21
	}
22
23
	/** @test */
24
	public function it_renders_model_values()
25
	{
26
		$form = $this->form();
27
		$form->defaults($this->model(['foo'=>'bar']));
28
		$form->number('foo');
29
		$this->assertContains('<input name="foo" value="bar"', $form->render());
30
	}
31
32
	/** @test */
33
	public function it_can_fill_model_values()

tests/unit/ParagraphTextTest.php 1 location

@@ 25-32 (lines=8) @@
22
	}
23
24
	/** @test */
25
	public function it_renders_model_values()
26
	{
27
		$form = $this->form();
28
		$form->defaults($this->model(['foo'=>'bar']));
29
		$form->paragraph_text('foo');
30
		$this->assertContains('<textarea name="foo"', $form->render());
31
		$this->assertContains('bar</textarea>', $form->render());
32
	}
33
34
	/** @test */
35
	public function it_can_fill_model_values()

tests/unit/TextTest.php 1 location

@@ 24-30 (lines=7) @@
21
	}
22
23
	/** @test */
24
	public function it_renders_model_values()
25
	{
26
		$form = $this->form();
27
		$form->defaults($this->model(['foo'=>'bar']));
28
		$form->text('foo');
29
		$this->assertContains('<input name="foo" value="bar"', $form->render());
30
	}
31
32
	/** @test */
33
	public function it_can_fill_model_values()