Skip to content

Commit 2be491e

Browse files
committed
Add Mutation and Tests
1 parent 9a03dff commit 2be491e

38 files changed

+2278
-116
lines changed

.travis.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: php
2+
3+
php:
4+
- 5.4
5+
- 7.0
6+
7+
branches:
8+
only:
9+
- master
10+
- /^\d+\.\d+$/
11+
12+
matrix:
13+
fast_finish: true
14+
15+
cache:
16+
directories:
17+
- $HOME/.composer/cache
18+
19+
before_install:
20+
- phpenv config-rm xdebug.ini
21+
- composer selfupdate
22+
23+
install: composer update --prefer-dist --no-interaction
24+
25+
script: vendor/bin/phpunit

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

app/AppKernel.php

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ public function registerBundles()
2525
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
2626
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
2727
$bundles[] = new Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle();
28+
$bundles[] = new Liip\FunctionalTestBundle\LiipFunctionalTestBundle();
2829
}
2930

3031
return $bundles;

app/config/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ overblog_graphql:
7474
config_validation: %kernel.debug%
7575
schema:
7676
query: Query
77-
mutation: ~
77+
mutation: Mutation

app/config/config_test.yml

+7
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,10 @@ web_profiler:
1414

1515
swiftmailer:
1616
disable_delivery: true
17+
18+
liip_functional_test:
19+
command_verbosity: debug
20+
21+
doctrine:
22+
dbal:
23+
dbname: "%database_name%_test"

composer.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,14 @@
2727
"sensio/distribution-bundle": "^5.0",
2828
"sensio/framework-extra-bundle": "^3.0.2",
2929
"incenteev/composer-parameter-handler": "^2.0",
30-
"overblog/graphql-bundle": "^0.1.2"
30+
"overblog/graphql-bundle": "dev-master"
3131
},
3232
"require-dev": {
3333
"sensio/generator-bundle": "^3.0",
3434
"symfony/phpunit-bridge": "^3.0",
35-
"doctrine/doctrine-fixtures-bundle": "^2.3"
35+
"doctrine/doctrine-fixtures-bundle": "^2.3",
36+
"phpunit/phpunit": "^4.1|^5.1",
37+
"liip/functional-test-bundle": "^1.5"
3638
},
3739
"scripts": {
3840
"post-install-cmd": [

0 commit comments

Comments
 (0)