protected function getExtensions() { $translator = $this->getMock('Symfony\\Component\\Translation\\TranslatorInterface'); $filterType = new FilterType($translator); return [new PreloadedExtension([$filterType->getName() => $filterType], [])]; }
public function testGetName() { $this->assertEquals(FilterType::NAME, $this->type->getName()); }