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

Commit fd93d87

Browse files
remove deprecation warnings on Symfony 3.4, new testing app folder structure (#297)
1 parent a619b53 commit fd93d87

File tree

25 files changed

+68
-69
lines changed

25 files changed

+68
-69
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Tests/Resources/app/cache
2-
Tests/Resources/app/logs
1+
tests/Fixtures/App/var
2+
!tests/Fixtures/App/var/.gitempty
33
composer.lock
44
vendor

.travis.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -26,30 +26,30 @@ cache:
2626
- $HOME/.composer/cache/files
2727

2828
env:
29-
matrix: SYMFONY_VERSION=3.4
29+
matrix: SYMFONY_VERSION=^3.4@dev
3030
global:
31-
- SYMFONY_DEPRECATIONS_HELPER=48
32-
- SYMFONY_PHPUNIT_DIR=.phpunit SYMFONY_PHPUNIT_REMOVE="symfony/yaml" SYMFONY_PHPUNIT_VERSION=5.7
31+
- SYMFONY_DEPRECATIONS_HELPER=0
32+
- SYMFONY_PHPUNIT_DIR=.phpunit SYMFONY_PHPUNIT_REMOVE="symfony/yaml"
33+
- KERNEL_CLASS=Symfony\Cmf\Bundle\MenuBundle\Tests\Fixtures\App\Kernel
34+
- SYMFONY_PHPUNIT_VERSION=5.7
3335
- TEST_INSTALLATION=false
3436

3537
matrix:
3638
include:
3739
- php: 7.1
38-
env: SYMFONY_VERSION=3.4.*
40+
env: DEPS=dev SYMFONY_VERSION=^4.0@dev
41+
- php: 7.1
42+
env: DEPS=dev SYMFONY_VERSION=^3.4@dev
3943
- php: 7.1
40-
env: DEPS=dev SYMFONY_VERSION=3.3.*
41-
- php: 5.6
4244
env: COMPOSER_FLAGS="--prefer-lowest" SYMFONY_VERSION=2.8.* SYMFONY_DEPRECATIONS_HELPER=weak
43-
- php: 7.0
44-
env: SYMFONY_VERSION=3.1.*
45-
- php: 7.0
46-
env: SYMFONY_VERSION=3.2.*
47-
45+
- php: 7.1
46+
env: SYMFONY_VERSION=3.3.*
4847
- env: TEST_INSTALLATION=true
48+
4949
fast_finish: true
5050
allow_failures:
5151
- php: 7.1
52-
env: SYMFONY_VERSION=3.4.*
52+
env: DEPS=dev SYMFONY_VERSION=^4.0@dev
5353
- env: TEST_INSTALLATION=true
5454

5555

@@ -63,8 +63,6 @@ before_install:
6363

6464
install: travis_wait composer update --prefer-dist $COMPOSER_FLAGS
6565

66-
before_script: vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
67-
6866
script:
6967
- if [ "${TEST_INSTALLATION}" == true ]; then make test_installation; else make test; fi
7068

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
Changelog
22
=========
33

4+
* **2017-11-15**: Removed php 5.6 and 7.0 support, removed Symfony 3.0.* and 3.1.* support
5+
46
2.1.0
57
-----
68

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Contributing
22
------------
33

4-
Symfony2 CMF is an open source, community-driven project. We follow the same
5-
guidelines as core Symfony2. If you'd like to contribute, please read the
4+
Symfony CMF is an open source, community-driven project. We follow the same
5+
guidelines as core Symfony. If you'd like to contribute, please read the
66
[Contributing Code][1] part of the documentation. If you're submitting a pull
77
request, please follow the guidelines in the [Submitting a Patch][2] section
88
and use the [Pull Request Template][3].

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ ifdef BRANCH
2020
VERSION=dev-${BRANCH}
2121
endif
2222
PACKAGE=symfony-cmf/menu-bundle
23-
23+
export KERNEL_CLASS=Symfony\Cmf\Bundle\MenuBundle\Tests\Fixtures\App\Kernel
2424
list:
2525
@echo 'test: will run all tests'
2626
@echo 'unit_tests: will run unit tests only'
@@ -31,4 +31,5 @@ include ${TESTING_SCRIPTS_DIR}/make/unit_tests.mk
3131
include ${TESTING_SCRIPTS_DIR}/make/functional_tests_phpcr.mk
3232
include ${TESTING_SCRIPTS_DIR}/make/test_installation.mk
3333

34+
.PHONY: test
3435
test: unit_tests functional_tests_phpcr

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ Branch | Travis | Coveralls |
1212
------ | ------ | --------- |
1313
master | [![Build Status][travis_unstable_badge]][travis_unstable_link] | [![Coverage Status][coveralls_unstable_badge]][coveralls_unstable_link] |
1414

15-
This bundle is part of the [Symfony Content Management Framework (CMF)](http://cmf.symfony.com/) and licensed
15+
This package is part of the [Symfony Content Management Framework (CMF)](http://cmf.symfony.com/) and licensed
1616
under the [MIT License](LICENSE).
1717

1818
The MenuBundle provides menus from a doctrine object manager with the help of KnpMenuBundle.
1919

2020

2121
## Requirements
2222

23-
* PHP 5.6 / 7.0 / 7.1
24-
* Symfony 2.8 / 3.1 / 3.2 / 3.3
23+
* PHP 7.1
24+
* Symfony 2.8 / 3.3 / ^3.4@dev
2525
* See also the `require` section of [composer.json](composer.json)
2626

2727
## Documentation
@@ -45,7 +45,7 @@ Pull requests are welcome. Please see our
4545
[CONTRIBUTING](https://github.com/symfony-cmf/symfony-cmf/blob/master/CONTRIBUTING.md)
4646
guide.
4747

48-
Unit and/or functional tests exist for this bundle. See the
48+
Unit and/or functional tests exist for this package. See the
4949
[Testing documentation](http://symfony.com/doc/master/cmf/components/testing.html)
5050
for a guide to running the tests.
5151

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"require": {
1515
"php": "^5.6|^7.0",
1616
"symfony/framework-bundle": "^2.8|^3.0",
17-
"knplabs/knp-menu-bundle": "^2.0.0",
17+
"knplabs/knp-menu-bundle": "^2.2.0",
1818
"knplabs/knp-menu": "^2.0.0"
1919
},
2020
"require-dev": {
@@ -24,7 +24,6 @@
2424
"symfony-cmf/testing": "^2.1@dev",
2525
"twig/twig": "^1.18|^2.0",
2626
"symfony-cmf/core-bundle": "^2.0",
27-
"doctrine/phpcr-bundle": "^1.1",
2827
"doctrine/phpcr-odm": "^1.4.2"
2928
},
3029
"suggest": {
@@ -47,5 +46,6 @@
4746
"dev-master": "2.2-dev"
4847
}
4948
},
49+
"minimum-stability":"dev",
5050
"prefer-stable": true
5151
}

phpunit.xml.dist

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,4 @@
2525
</exclude>
2626
</whitelist>
2727
</filter>
28-
<php>
29-
<server name="KERNEL_DIR" value="tests/Resources/app" />
30-
</php>
31-
3228
</phpunit>

tests/Resources/Admin/TestContentAdmin.php renamed to tests/Fixtures/App/Admin/TestContentAdmin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Cmf\Bundle\MenuBundle\Tests\Resources\Admin;
12+
namespace Symfony\Cmf\Bundle\MenuBundle\Tests\Fixtures\App\Admin;
1313

1414
use Sonata\AdminBundle\Datagrid\ListMapper;
1515
use Sonata\AdminBundle\Form\FormMapper;

tests/Resources/DataFixtures/PHPCR/LoadMenuData.php renamed to tests/Fixtures/App/DataFixtures/PHPCR/LoadMenuData.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespace Symfony\Cmf\Bundle\MenuBundle\Tests\Resources\DataFixtures\PHPCR;
12+
namespace Symfony\Cmf\Bundle\MenuBundle\Tests\Fixtures\App\DataFixtures\PHPCR;
1313

1414
use Doctrine\Common\DataFixtures\FixtureInterface;
1515
use Doctrine\Common\Persistence\ObjectManager;
1616
use Doctrine\ODM\PHPCR\DocumentManager;
1717
use PHPCR\Util\NodeHelper;
1818
use Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\Menu;
1919
use Symfony\Cmf\Bundle\MenuBundle\Doctrine\Phpcr\MenuNode;
20-
use Symfony\Cmf\Bundle\MenuBundle\Tests\Resources\Document\Content;
20+
use Symfony\Cmf\Bundle\MenuBundle\Tests\Fixtures\App\Document\Content;
2121
use Symfony\Cmf\Bundle\RoutingBundle\Doctrine\Phpcr\Route;
2222

2323
class LoadMenuData implements FixtureInterface

0 commit comments

Comments
 (0)