Skip to content
This repository was archived by the owner on Sep 16, 2021. It is now read-only.

Commit 6c4e87d

Browse files
authored
Use extracted enhancer
1 parent 8efe19c commit 6c4e87d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Unit/Description/SonataEnhancerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
use Sonata\AdminBundle\Model\AuditManagerInterface;
1818
use Sonata\AdminBundle\Model\ModelManagerInterface;
1919
use Sonata\AdminBundle\Route\PathInfoBuilder;
20+
use Symfony\Cmf\Bundle\SonataPhpcrAdminIntegrationBundle\Description\SonataEnhancer;
2021
use Symfony\Cmf\Component\Resource\Description\Description;
2122
use Symfony\Cmf\Component\Resource\Description\Descriptor;
22-
use Symfony\Cmf\Component\Resource\Description\Enhancer\Sonata\AdminEnhancer;
2323
use Symfony\Cmf\Component\Resource\Repository\Resource\CmfResource;
2424
use Symfony\Component\DependencyInjection\ContainerBuilder;
2525
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
@@ -69,7 +69,7 @@ public function testDescriptionProvide()
6969
});
7070

7171
$description = new Description($this->resource->reveal());
72-
$enhancer = new AdminEnhancer($this->pool, $this->generator->reveal());
72+
$enhancer = new SonataEnhancer($this->pool, $this->generator->reveal());
7373
$enhancer->enhance($description);
7474

7575
$this->assertEquals('/std_class_edit', $description->get(Descriptor::LINK_EDIT_HTML));

0 commit comments

Comments
 (0)