Skip to content

Commit f5f3628

Browse files
committed
Merge remote-tracking branch 'origin/2.1'
2 parents 3cf6afa + 4638e20 commit f5f3628

File tree

9 files changed

+19
-16
lines changed

9 files changed

+19
-16
lines changed

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ env:
3030
global:
3131
- SYMFONY_DEPRECATIONS_HELPER="/.*each.*/"
3232
- SYMFONY_PHPUNIT_DIR=.phpunit SYMFONY_PHPUNIT_REMOVE="symfony/yaml"
33-
- KERNEL_CLASS=Symfony\Cmf\Bundle\CoreBundle\Tests\Fixtures\App\Kernel
34-
- SYMFONY_PHPUNIT_VERSION=5.7
33+
- SYMFONY_PHPUNIT_VERSION=6
3534
- TEST_INSTALLATION=false
3635

3736
matrix:

CHANGELOG.md

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

4+
2.1.1
5+
-----
6+
7+
* Fixed another template reference to work with Symfony 4.
8+
49
2.1.0
510
-----
611

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
[![Monthly Downloads](https://poser.pugx.org/symfony-cmf/core-bundle/d/monthly)](https://packagist.org/packages/symfony-cmf/core-bundle)
99
[![Daily Downloads](https://poser.pugx.org/symfony-cmf/core-bundle/d/daily)](https://packagist.org/packages/symfony-cmf/core-bundle)
1010

11-
Version/Branch | Travis | Coveralls |
11+
Branch | Travis | Coveralls |
1212
------ | ------ | --------- |
13-
2.1.0 | [![Build Status][travis_stable_badge]][travis_link] | [![Coverage Status][coveralls_stable_badge]][coveralls_stable_link] |
13+
2.1 | [![Build Status][travis_stable_badge]][travis_link] | [![Coverage Status][coveralls_stable_badge]][coveralls_stable_link] |
1414
master | [![Build Status][travis_unstable_badge]][travis_link] | [![Coverage Status][coveralls_unstable_badge]][coveralls_unstable_link] |
1515

1616
This package is part of the [Symfony Content Management Framework (CMF)](http://cmf.symfony.com/) and licensed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
},
2121
"require-dev": {
2222
"symfony/security-bundle": "^2.8 || ^3.3 || ^4.0",
23-
"symfony/phpunit-bridge": "^3.4.19 || ^4.0",
23+
"symfony/phpunit-bridge": "^4.2.2",
2424
"mockery/mockery": "^0.9.4",
2525
"symfony-cmf/routing-bundle": "^2.1.0",
26-
"symfony-cmf/testing": "^2.1.8",
26+
"symfony-cmf/testing": "^2.1.11",
2727
"doctrine/dbal": "2.5.*",
2828
"doctrine/phpcr-odm": "^1.4|^2.0 ",
2929
"symfony/browser-kit": "^2.8 || ^3.3 || ^4.0",

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</filter>
2828

2929
<php>
30-
<server name="KERNEL_DIR" value="tests/Resources/app" />
30+
<server name="KERNEL_CLASS" value="\Symfony\Cmf\Bundle\CoreBundle\Tests\Fixtures\App\Kernel" />
3131
</php>
3232

3333
</phpunit>

src/DependencyInjection/CmfCoreExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public function setupFormTypes(ContainerBuilder $container, LoaderInterface $loa
295295
// if there is twig, register our form type with twig
296296
if ($container->hasParameter('twig.form.resources')) {
297297
$resources = $container->getParameter('twig.form.resources');
298-
$container->setParameter('twig.form.resources', array_merge($resources, ['CmfCoreBundle:Form:checkbox_url_label_form_type.html.twig']));
298+
$container->setParameter('twig.form.resources', array_merge($resources, ['@CmfCore/Form/checkbox_url_label_form_type.html.twig']));
299299
}
300300
}
301301
}

tests/Functional/Templating/Helper/CmfHierarchyTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Cmf\Bundle\CoreBundle\Tests\Functional\Templating\Helper;
1313

1414
use Doctrine\ODM\PHPCR\Document\Generic;
15+
use PHPUnit\Framework\MockObject\MockObject;
1516
use Symfony\Cmf\Bundle\CoreBundle\Templating\Helper\Cmf;
1617
use Symfony\Cmf\Bundle\CoreBundle\Tests\Fixtures\App\DataFixture\LoadHierarchyRouteData;
1718
use Symfony\Cmf\Bundle\CoreBundle\Tests\Fixtures\App\Document\RouteAware;
@@ -21,7 +22,7 @@
2122
class CmfHierarchyTest extends BaseTestCase
2223
{
2324
/**
24-
* @var AuthorizationCheckerInterface|\PHPUnit_Framework_MockObject_MockObject
25+
* @var AuthorizationCheckerInterface|MockObject
2526
*/
2627
private $publishWorkflowChecker;
2728

tests/Unit/Templating/Helper/CmfTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
use Symfony\Cmf\Bundle\CoreBundle\PublishWorkflow\PublishWorkflowChecker;
1919
use Symfony\Cmf\Bundle\CoreBundle\Templating\Helper\Cmf;
2020
use Symfony\Cmf\Component\Routing\RouteReferrersReadInterface;
21+
use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
2122
use Symfony\Component\Routing\Route;
2223
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
2324

@@ -221,9 +222,6 @@ public function testFindManyLimitOffset()
221222
$this->assertEquals([$documentB], $this->helper->findMany(['/foo', 'bar'], 1, 1, null));
222223
}
223224

224-
/**
225-
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
226-
*/
227225
public function testFindManyNoWorkflow()
228226
{
229227
$extension = new Cmf(null);
@@ -237,6 +235,7 @@ public function testFindManyNoWorkflow()
237235
->will($this->returnValue($documentA))
238236
;
239237

238+
$this->expectException(InvalidConfigurationException::class);
240239
$extension->findMany(['/foo', '/bar'], false, false);
241240
}
242241

@@ -256,14 +255,12 @@ public function testIsPublished()
256255
$this->assertTrue($this->helper->isPublished($document));
257256
}
258257

259-
/**
260-
* @expectedException \Symfony\Component\Config\Definition\Exception\InvalidConfigurationException
261-
*/
262258
public function testIsPublishedNoWorkflow()
263259
{
264260
$extension = new Cmf(null);
265261
$extension->setDoctrineRegistry($this->managerRegistry, 'foo');
266262

263+
$this->expectException(InvalidConfigurationException::class);
267264
$extension->isPublished(new \stdClass());
268265
}
269266

tests/Unit/Twig/Extension/CmfExtensionTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@
1111

1212
namespace Symfony\Cmf\Bundle\CoreBundle\Tests\Unit\Twig\Extension;
1313

14+
use PHPUnit\Framework\MockObject\MockObject;
1415
use PHPUnit\Framework\TestCase;
1516
use Symfony\Cmf\Bundle\CoreBundle\Templating\Helper\Cmf;
1617
use Symfony\Cmf\Bundle\CoreBundle\Twig\Extension\CmfExtension;
1718

1819
class CmfExtensionTest extends TestCase
1920
{
2021
/**
21-
* @var Cmf|\PHPUnit_Framework_MockObject_MockObject
22+
* @var Cmf|MockObject
2223
*/
2324
private $cmfHelper;
2425

0 commit comments

Comments
 (0)