diff --git a/Resources/doc/index.rst b/Resources/doc/index.rst index 440dec5..9841c4b 100644 --- a/Resources/doc/index.rst +++ b/Resources/doc/index.rst @@ -1,5 +1,5 @@ Dashboard Bundle -=========== +================ Reference Guide --------------- diff --git a/Resources/doc/reference/introduction.rst b/Resources/doc/reference/introduction.rst index 7f2ed16..e7a9e61 100644 --- a/Resources/doc/reference/introduction.rst +++ b/Resources/doc/reference/introduction.rst @@ -5,7 +5,7 @@ This small introduction will try to explain the basics concepts behind the ``DashboardBundle``. A Dashboard ------- +----------- A Block diff --git a/Tests/DependencyInjection/ConfigurationTest.php b/Tests/DependencyInjection/ConfigurationTest.php index f5b6a3f..c0e6c2d 100644 --- a/Tests/DependencyInjection/ConfigurationTest.php +++ b/Tests/DependencyInjection/ConfigurationTest.php @@ -32,8 +32,9 @@ public function testClasses() $expected = array( 'class' => array( 'dashboard' => 'MyApp\\Sonata\\DashboardBundle\\Entity\\Dashboard', - 'block' => 'Sonata\\DashboardBundle\\Entity\\Block', + 'block' => 'Application\\Sonata\\DashboardBundle\\Entity\\Block', ), + 'default_container' => 'sonata.dashboard.block.container', ); $this->assertEquals($expected, $config); diff --git a/Tests/Model/BlockInteractorTest.php b/Tests/Model/BlockInteractorTest.php index 01625f9..d27a09d 100644 --- a/Tests/Model/BlockInteractorTest.php +++ b/Tests/Model/BlockInteractorTest.php @@ -9,7 +9,7 @@ * file that was distributed with this source code. */ -namespace Sonata\DashboardBundle\Tests\Entity; +namespace Sonata\DashboardBundle\Tests\Model; use Sonata\BlockBundle\Model\Block; use Sonata\DashboardBundle\Entity\BlockInteractor; @@ -33,7 +33,7 @@ public function testCreateNewContainer() $blockManager = $this->getMock('Sonata\BlockBundle\Model\BlockManagerInterface'); $blockManager->expects($this->any())->method('create')->will($this->returnValue(new Block())); - $blockInteractor = new BlockInteractor($registry, $blockManager); + $blockInteractor = new BlockInteractor($registry, $blockManager, 'sonata.dashboard.block.container'); $container = $blockInteractor->createNewContainer(array( 'enabled' => true,