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

Commit afa6d38

Browse files
committed
Updated for testing component
1 parent 7a18ccb commit afa6d38

File tree

9 files changed

+27
-39
lines changed

9 files changed

+27
-39
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/vendor/
2-
/Tests/Functional/app/cache/
2+
/Tests/Functional/App/Kernel/cache/
3+
/Tests/Functional/App/Kernel/logs/

.travis.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
language: php
22

3-
php:
4-
- 5.3
5-
- 5.4
6-
73
env:
8-
- SYMFONY_VERSION=2.1.*
94
- SYMFONY_VERSION=2.2.*
105
- SYMFONY_VERSION=2.3.*
11-
- SYMFONY_VERSION=dev-master
126

137
before_script:
14-
- ./Tests/Functional/init_travis.sh
8+
- composer require symfony/framework-bundle:${SYMFONY_VERSION} --no-update
9+
- composer install --dev
10+
- vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
1511

1612
script: phpunit --coverage-text
1713

DependencyInjection/CmfRoutingAutoExtension.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ public function load(array $configs, ContainerBuilder $container)
3333
foreach ($config['auto_route_mapping'] as $classFqn => $config) {
3434
$chainFactoryDef->addMethodCall('registerMapping', array($classFqn, $config));
3535
}
36-
37-
var_dump($container->getParameterBag());die();
3836
}
3937
}
4038

Tests/Functional/App/config/routingautoroute.yml renamed to Tests/Functional/App/Kernel/config/routingautoroute.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cmf_routing_auto:
44

55
##
66
# e.g. /cms/auto-route/blog/my-blogs-title
7-
Symfony\Cmf\Bundle\RoutingAutoBundle\Tests\Functional\app\Document\Blog:
7+
Symfony\Cmf\Bundle\RoutingAutoBundle\Tests\Functional\App\Document\Blog:
88

99
# generate or use path components leading up to the final part of the path
1010
content_path:
@@ -37,7 +37,7 @@ cmf_routing_auto:
3737

3838
##
3939
# e.g. /cms/auto-route/blog/my-blogs-title/2013-04-09/my-post-title
40-
Symfony\Cmf\Bundle\RoutingAutoBundle\Tests\Functional\app\Document\Post:
40+
Symfony\Cmf\Bundle\RoutingAutoBundle\Tests\Functional\App\Document\Post:
4141

4242
content_path:
4343

Tests/Functional/App/config/phpcrodm.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

Tests/Functional/App/console

Lines changed: 0 additions & 15 deletions
This file was deleted.

phpunit.xml.dist

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,30 @@
33
<!-- http://www.phpunit.de/manual/current/en/appendixes.configuration.html -->
44
<phpunit
55
colors="true"
6-
bootstrap="Tests/bootstrap.php"
7-
>
6+
bootstrap="vendor/symfony-cmf/testing/bootstrap/bootstrap.php"
7+
>
88

99
<testsuites>
10-
<testsuite name="Symfony CmfRoutingAutoBundle Test Suite">
10+
<testsuite name="CmfRoutingAutoBundle Test Suite">
1111
<directory>./Tests</directory>
1212
</testsuite>
1313
</testsuites>
1414

15+
<filter>
16+
<whitelist addUncoveredFilesFromWhitelist="true">
17+
<directory>.</directory>
18+
<exclude>
19+
<file>*Bundle.php</file>
20+
<directory>Resources/</directory>
21+
<directory>Admin/</directory>
22+
<directory>Tests/</directory>
23+
<directory>vendor/</directory>
24+
</exclude>
25+
</whitelist>
26+
</filter>
27+
28+
<php>
29+
<server name="KERNEL_DIR" value="Tests/Functional/App/Kernel" />
30+
</php>
31+
1532
</phpunit>

0 commit comments

Comments
 (0)