public function configureSettings(OptionsResolver $resolver)
 {
     parent::configureSettings($resolver);
     $resolver->setDefaults(['full_width' => false, 'no_padding' => false, "per_row" => 1]);
     $resolver->setAllowedTypes("full_width", ['boolean', 'string']);
     $resolver->setAllowedTypes("no_padding", ['boolean', 'string']);
     $resolver->setAllowedTypes("per_row", ['integer', 'string']);
 }
 public function testExecutionOfBlockWithNoChildren()
 {
     $template = 'CmfBlockBundle:Block:block_container.html.twig';
     $childrenCollectionMock = $this->getMockBuilder('Doctrine\\ODM\\PHPCR\\ChildrenCollection')->disableOriginalConstructor()->getMock();
     $containerBlock = new ContainerBlock('foo');
     $containerBlock->setEnabled(true);
     $containerBlock->setChildren($childrenCollectionMock);
     $settings = array('divisibleBy' => 0, 'divisibleClass' => '', 'childClass' => '', 'template' => $template);
     $blockContext = new BlockContext($containerBlock, $settings);
     $blockRendererMock = $this->getMockBuilder('Sonata\\BlockBundle\\Block\\BlockRendererInterface')->disableOriginalConstructor()->getMock();
     $templatingMock = $this->getMockBuilder('Symfony\\Bundle\\FrameworkBundle\\Templating\\EngineInterface')->disableOriginalConstructor()->getMock();
     $templatingMock->expects($this->once())->method('renderResponse')->with($this->equalTo($template), $this->equalTo(array('block' => $containerBlock, 'settings' => $settings)), $this->isInstanceOf('Symfony\\Component\\HttpFoundation\\Response'))->will($this->returnValue(new Response('')));
     $containerBlockService = new ContainerBlockService('test-service', $templatingMock, $blockRendererMock);
     $response = $containerBlockService->execute($blockContext);
     $this->assertInstanceof('Symfony\\Component\\HttpFoundation\\Response', $response);
     $this->assertEquals('', $response->getContent());
 }