/** * @test */ public function shouldCreateForm() { $type = 'type'; $container = $this->createContainerMock(); $formFactory = $this->createFormFactoryMock(); $manager = new EmbeddedFormManager($container, $formFactory); $formInstance = new \stdClass(); $formFactory->expects($this->once())->method('create')->with($type, null, [])->will($this->returnValue($formInstance)); $this->assertSame($formInstance, $manager->createForm($type)); }