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

Commit a936046

Browse files
committed
Merge pull request #209 from symfony-cmf/fix_tests
fix test setup, added php 5.6 to test matrix
2 parents 55e0ef2 + 9dbf3bd commit a936046

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ php:
44
- 5.3
55
- 5.4
66
- 5.5
7+
- 5.6
78
- hhvm
89

910
env:
@@ -12,7 +13,6 @@ env:
1213
matrix:
1314
allow_failures:
1415
- env: SYMFONY_VERSION=dev-master
15-
- php: hhvm
1616
include:
1717
- php: 5.5
1818
env: SYMFONY_VERSION=2.3.*

Admin/AbstractMenuNodeAdmin.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,24 @@
2424
*/
2525
abstract class AbstractMenuNodeAdmin extends Admin
2626
{
27+
/**
28+
* @var ContentAwareFactory
29+
*/
2730
protected $contentAwareFactory;
31+
32+
/**
33+
* @var string
34+
*/
35+
protected $contentRoot;
36+
37+
/**
38+
* @var string
39+
*/
2840
protected $menuRoot;
41+
42+
/**
43+
* @var string
44+
*/
2945
protected $translationDomain = 'CmfMenuBundle';
3046

3147
protected function configureListFields(ListMapper $listMapper)
@@ -83,7 +99,7 @@ protected function configureFormFields(FormMapper $formMapper)
8399
}
84100
}
85101

86-
protected function configureShowField(ShowMapper $showMapper)
102+
protected function configureShowFields(ShowMapper $showMapper)
87103
{
88104
$showMapper
89105
->add('id', 'text')

Tests/Resources/app/config/config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php
22

3+
$container->setParameter('cmf_testing.bundle_fqn', 'Symfony\Cmf\Bundle\MenuBundle');
34
$loader->import(CMF_TEST_CONFIG_DIR.'/default.php');
45
$loader->import(CMF_TEST_CONFIG_DIR.'/phpcr_odm.php');
56
$loader->import(CMF_TEST_CONFIG_DIR.'/sonata_admin.php');

0 commit comments

Comments
 (0)