File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed
Tests/Resources/DataFixtures/Phpcr Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 14
14
15
15
use Doctrine \Common \DataFixtures \FixtureInterface ;
16
16
use Doctrine \Common \Persistence \ObjectManager ;
17
- use Doctrine \ Common \ DataFixtures \ DependentFixtureInterface ;
17
+ use PHPCR \ Util \ NodeHelper ;
18
18
use Symfony \Cmf \Bundle \SimpleCmsBundle \Doctrine \Phpcr \Page ;
19
19
20
- class LoadPageData implements FixtureInterface, DependentFixtureInterface
20
+ class LoadPageData implements FixtureInterface
21
21
{
22
- public function getDependencies ()
23
- {
24
- return array (
25
- 'Symfony\Cmf\Component\Testing\DataFixtures\PHPCR\LoadBaseData ' ,
26
- );
27
- }
28
-
29
22
protected function getContent ($ filename )
30
23
{
31
24
return file_get_contents (__DIR__ .'/content/ ' .$ filename );
32
25
}
33
26
34
27
public function load (ObjectManager $ manager )
35
28
{
29
+ NodeHelper::createPath ($ manager ->getPhpcrSession (), '/test ' );
36
30
$ root = $ manager ->find (null , '/test ' );
37
31
38
32
$ base = new Page ();
You can’t perform that action at this time.
0 commit comments