Skip to content

Commit b9f5306

Browse files
committed
Bundle standards
- General Bundle Standards (all) - Meta - Testing component integration
1 parent aa08d1b commit b9f5306

File tree

12 files changed

+120
-12
lines changed

12 files changed

+120
-12
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Tests/Resources/app/cache
2+
Tests/Resources/app/logs
3+
composer.lock
4+
vendor

.travis.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
language: php
2+
3+
php:
4+
- 5.3
5+
- 5.4
6+
- 5.5
7+
8+
env:
9+
- SYMFONY_VERSION=2.2.*
10+
- SYMFONY_VERSION=2.3.*
11+
12+
before_script:
13+
- composer require symfony/framework-bundle:${SYMFONY_VERSION}
14+
- vendor/symfony-cmf/testing/bin/travis/phpcr_odm_doctrine_dbal.sh
15+
16+
script: phpunit --coverage-text
17+
18+
notifications:
19+
irc: "irc.freenode.org#symfony-cmf"
20+

Migrator/Page.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Doctrine\Bundle\PHPCRBundle\Migrator\MigratorInterface;
1414
use Doctrine\ODM\PHPCR\DocumentManager;
1515

16+
// dan: What does this do ??
1617
class Page implements MigratorInterface
1718
{
1819
/**
@@ -131,4 +132,4 @@ public function migrate($path = '/', $depth = -1)
131132

132133
return 0;
133134
}
134-
}
135+
}

README.md

Lines changed: 33 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,40 @@
1-
# Symfony Cmf Simple CMS Bundle
1+
# Symfony CMF SimpleCmsBundle Bundle
2+
3+
[![Build Status](https://secure.travis-ci.org/symfony-cmf/SimpleCmsBundle.png)](http://travis-ci.org/symfony-cmf/SimpleCmsBundle)
4+
[![Latest Stable Version](https://poser.pugx.org/symfony-cmf/simple-cms-bundle/version.png)](https://packagist.org/packages/symfony-cmf/simple-cms-bundle)
5+
[![Total Downloads](https://poser.pugx.org/symfony-cmf/simple-cms-bundle/d/total.png)](https://packagist.org/packages/symfony-cmf/simple-cms-bundle)
6+
7+
This bundle is part of the [Symfony Content Management Framework (CMF)](http://cmf.symfony.com/)
8+
and licensed under the [MIT License](LICENSE).
29

310
A trivial content management system based on the [Symfony Cmf](https://github.com/symfony-cmf/symfony-cmf)
411

5-
## Links
12+
## Requirements
613

7-
- GitHub: <https://github.com/symfony-cmf/symfony-cmf>
8-
- Sandbox: <https://github.com/symfony-cmf/cmf-sandbox>
9-
- Web: <http://cmf.symfony.com/>
10-
- Uncyclo: <http://github.com/symfony-cmf/symfony-cmf/wiki>
11-
- Issue Tracker: <http://cmf.symfony-project.org/redmine/>
12-
- IRC: irc://freenode/#symfony-cmf
13-
- Users mailing list: <http://groups.google.com/group/symfony-cmf-users>
14-
- Devs mailing list: <http://groups.google.com/group/symfony-cmf-devs>
14+
* Symfony 2.2.x
15+
* See also the `require` section of [composer.json](composer.json)
1516

1617
## Documentation
1718

18-
http://symfony.com/doc/master/cmf/getting_started/simplecms.html
19+
For the install guide and reference, see:
20+
21+
* [SimpleCmsBundle documentation](http://symfony.com/doc/master/cmf/bundles/simple-cms-bundle.html)
22+
23+
See also:
24+
25+
* [All Symfony CMF documentation](http://symfony.com/doc/master/cmf/index.html)- complete Symfony CMF reference
26+
* [Symfony CMF Website](http://cmf.symfony.com/) - introduction, live demo, support and community links
27+
28+
29+
## Contributing
30+
31+
Pull requests are welcome. Please see our
32+
[CONTRIBUTING](https://github.com/symfony-cmf/symfony-cmf/blob/master/CONTRIBUTING.md)
33+
guide.
34+
35+
Unit and/or functional tests exist for this bundle. See the
36+
[Testing documentation](http://symfony.com/doc/master/cmf/components/testing.html)
37+
for a guide to running the tests.
38+
39+
Thanks to
40+
[everyone who has contributed](https://github.com/symfony-cmf/SimpleCmsBundle/contributors) already.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Tests/Resources/app/AppKernel.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
use Symfony\Cmf\Component\Testing\HttpKernel\TestKernel;
4+
use Symfony\Component\Config\Loader\LoaderInterface;
5+
6+
class AppKernel extends TestKernel
7+
{
8+
public function configure()
9+
{
10+
$this->requireBundleSets(array(
11+
'default',
12+
'phpcr_odm',
13+
'sonata_admin',
14+
));
15+
16+
$this->addBundles(array(
17+
new \Symfony\Cmf\Bundle\SimpleCmsBundle\CmfSimpleCmsBundle(),
18+
new \Symfony\Cmf\Bundle\MenuBundle\CmfMenuBundle(),
19+
new \Symfony\Cmf\Bundle\MenuBundle\CmfRoutingBundle(),
20+
));
21+
}
22+
23+
public function registerContainerConfiguration(LoaderInterface $loader)
24+
{
25+
$loader->load(__DIR__.'/config/config.php');
26+
}
27+
}

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
"doctrine/phpcr-bundle": "1.0.*",
2222
"doctrine/phpcr-odm": "1.0.*"
2323
},
24+
"require-dev": {
25+
"symfony-cmf/testing": "1.0.*",
26+
"sonata-project/doctrine-phpcr-admin-bundle": "1.0.*",
27+
"symfony/monolog-bundle": "2.2.*"
28+
},
2429
"suggest": {
2530
"symfony-cmf/create-bundle": "1.0.*",
2631
"symfony-cmf/menu-bundle": "~1.0.0-RC1",

phpunit.xml.dist

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit
3+
colors="true"
4+
bootstrap="vendor/symfony-cmf/testing/bootstrap/bootstrap.php"
5+
>
6+
7+
<testsuites>
8+
<testsuite name="Symfony SimpleCmsBundle Test Suite">
9+
<directory>./Tests</directory>
10+
</testsuite>
11+
</testsuites>
12+
13+
<filter>
14+
<whitelist addUncoveredFilesFromWhitelist="true">
15+
<directory>.</directory>
16+
<exclude>
17+
<directory>Resources/</directory>
18+
<directory>Admin/</directory>
19+
<directory>Tests/</directory>
20+
<directory>vendor/</directory>
21+
</exclude>
22+
</whitelist>
23+
</filter>
24+
25+
<php>
26+
<server name="KERNEL_DIR" value="Tests/Resources/app" />
27+
</php>
28+
29+
</phpunit>

0 commit comments

Comments
 (0)