Code Duplication    Length = 12-12 lines in 3 locations

tests/unit/FormTest.php 3 locations

@@ 398-409 (lines=12) @@
395
	}
396
397
	/** @test */
398
	public function it_uses_added_autoload_paths_to_find_templates()
399
	{
400
		$form = $this->form();
401
		$form->addPath(__DIR__.'/folder');
402
403
		$paths = $form->templatePaths();
404
405
		$this->assertCount(3, $paths);
406
		$this->assertContains('forms/tests/unit/folder/templates/bootstrap/', $paths[0]);
407
		$this->assertContains('forms/tests/unit/stubs/templates/bootstrap/', $paths[1]);
408
		$this->assertContains('forms/src/templates/bootstrap/', $paths[2]);
409
	}
410
411
	/** @test */
412
	public function it_uses_added_autoload_paths_to_find_templates_with_a_set_template()
@@ 412-423 (lines=12) @@
409
	}
410
411
	/** @test */
412
	public function it_uses_added_autoload_paths_to_find_templates_with_a_set_template()
413
	{
414
		$form = $this->form();
415
		$form->setTemplate('testing');
416
		$form->addPath(__DIR__.'/folder');
417
418
		$paths = $form->templatePaths();
419
420
		$this->assertCount(2, $paths);
421
		$this->assertContains('forms/tests/unit/folder/templates/testing/', $paths[0]);
422
		$this->assertContains('forms/tests/unit/stubs/templates/testing/', $paths[1]);
423
	}	
424
425
	/** @test */
426
	public function it_sets_your_namespace_as_an_autoload_path()
@@ 439-450 (lines=12) @@
436
	}
437
438
	/** @test */
439
	public function it_sets_your_namespace_and_parent_namespaces_as_an_autoload_path()
440
	{
441
    	$form = new FormWithCustomExtension($this->request());
442
		$form->removeAllPlugins();
443
444
		$paths = $form->paths();
445
446
		$this->assertCount(3, $paths);
447
		$this->assertContains('tests/unit/stubs/CustomExtension/', $paths[0]);
448
		$this->assertContains('tests/unit/stubs/CustomExtension/FormExtension/', $paths[1]);
449
		$this->assertContains('forms/src/', $paths[2]);
450
	}
451
452
	/** @test */
453
	public function it_sets_your_namespace_template_autoload_path_with_added_template()