public function testFormType() { $blockServiceManager = $this->getMock('Sonata\\BlockBundle\\Block\\BlockServiceManagerInterface'); $type = new ServiceListType($blockServiceManager); $this->assertEquals('sonata_block_service_choice', $type->getName()); $this->assertEquals('choice', $type->getParent()); }