Skip to content
This repository was archived by the owner on Nov 9, 2024. It is now read-only.

Commit f6a5686

Browse files
committed
Fix tests
1 parent 6cf8cc6 commit f6a5686

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/Form/Extension/InjectorAwareTypeExtensionTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use Cethyworks\ContentInjectorBundle\Form\Extension\InjectorAwareTypeExtension;
99
use PHPUnit\Framework\TestCase;
1010
use Symfony\Component\Form\Extension\Core\Type\FormType;
11-
use Symfony\Component\Form\FormInterface;
11+
use Symfony\Component\Form\Form;
1212
use Symfony\Component\Form\FormView;
1313
use Symfony\Component\OptionsResolver\OptionsResolver;
1414

@@ -60,7 +60,7 @@ public function testBuildViewShouldNotRegisterInjector()
6060
$options = ['injector' => false];
6161

6262
$view = new FormView();
63-
$form = $this->getMockBuilder(FormInterface::class)->disableOriginalConstructor()->getMock();
63+
$form = $this->getMockBuilder(Form::class)->disableOriginalConstructor()->getMock();
6464

6565
$this->commandFactory->expects($this->never())->method('create');
6666
$this->subscriber->expects($this->never())->method('registerCommand');
@@ -73,7 +73,7 @@ public function testBuildViewShouldRegisterInjector()
7373
$options = ['injector' => ['template' => 'foo']];
7474

7575
$view = new FormView();
76-
$form = $this->getMockBuilder(FormInterface::class)->disableOriginalConstructor()->getMock();
76+
$form = $this->getMockBuilder(Form::class)->disableOriginalConstructor()->getMock();
7777
$command = $this->getMockBuilder(TwigCommand::class)->disableOriginalConstructor()->getMock();
7878

7979
$this->commandFactory->expects($this->once())->method('create')->with($view, $options['injector'])->willReturn($command);

0 commit comments

Comments
 (0)