Skip to content
This repository has been archived by the owner on Jul 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5 from qsomazzi/master
Browse files Browse the repository at this point in the history
Fix tests
  • Loading branch information
rande committed Aug 6, 2015
2 parents 8b9644f + 87d172c commit ffd7424
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Resources/doc/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Dashboard Bundle
===========
================

Reference Guide
---------------
Expand Down
2 changes: 1 addition & 1 deletion Resources/doc/reference/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This small introduction will try to explain the basics concepts behind the
``DashboardBundle``.

A Dashboard
------
-----------


A Block
Expand Down
3 changes: 2 additions & 1 deletion Tests/DependencyInjection/ConfigurationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions Tests/Model/BlockInteractorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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,
Expand Down

0 comments on commit ffd7424

Please sign in to comment.