File tree Expand file tree Collapse file tree 3 files changed +11
-2
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ before_install:
5656install : composer update --prefer-source --no-interaction --optimize-autoloader ${COMPOSER_UPDATE_FLAGS}
5757
5858script :
59- - ./vendor/ bin/phpunit --debug $( if [ $TEST_COVERAGE = true ]; then echo "-d xdebug.max_nesting_level=1000 --coverage-clover=build/logs/clover.xml"; fi; )
59+ - ./bin/phpunit --debug $( if [ $TEST_COVERAGE = true ]; then echo "-d xdebug.max_nesting_level=1000 --coverage-clover=build/logs/clover.xml"; fi; )
6060 - if [ ${TEST_COVERAGE} = true ]; then wget http://cs.sensiolabs.org/download/php-cs-fixer-v2.phar -O php-cs-fixer && php ./php-cs-fixer fix --diff --dry-run -v; fi;
6161
6262after_script :
Original file line number Diff line number Diff line change 66use Overblog \GraphiQLBundle \Config \GraphiQLViewJavaScriptLibraries ;
77use Overblog \GraphiQLBundle \DependencyInjection \OverblogGraphiQLExtension ;
88use PHPUnit \Framework \TestCase ;
9+ use Symfony \Component \DependencyInjection \Compiler \CompilerPassInterface ;
910use Symfony \Component \DependencyInjection \ContainerBuilder ;
1011use Symfony \Component \DependencyInjection \ParameterBag \ParameterBag ;
1112use Symfony \Component \DependencyInjection \Reference ;
1213
13- final class OverblogGraphiQLExtensionTest extends TestCase
14+ final class OverblogGraphiQLExtensionTest extends TestCase implements CompilerPassInterface
1415{
1516 public function testLoadWithoutConfiguration ()
1617 {
1718 $ container = $ this ->createContainer ();
19+ $ container ->addCompilerPass ($ this );
1820 $ container ->registerExtension (new OverblogGraphiQLExtension ());
1921 $ container ->loadFromExtension ('overblog_graphiql ' );
2022 $ this ->compileContainer ($ container );
@@ -57,4 +59,10 @@ private function compileContainer(ContainerBuilder $container)
5759 $ container ->getCompilerPassConfig ()->setRemovingPasses ([]);
5860 $ container ->compile ();
5961 }
62+
63+ public function process (ContainerBuilder $ container )
64+ {
65+ $ container ->findDefinition ('overblog_graphiql.view.config.javascript_libraries ' )->setPublic (true );
66+ $ container ->findDefinition ('overblog_graphiql.view.config ' )->setPublic (true );
67+ }
6068}
Original file line number Diff line number Diff line change 1717 }
1818 ],
1919 "config" : {
20+ "bin-dir" : " bin" ,
2021 "sort-packages" : true
2122 },
2223 "require" : {
You can’t perform that action at this time.
0 commit comments