for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the PHP Translation package.
*
* (c) PHP Translation team <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Translation\PlatformAdapter\PhraseApp\Tests\Functional;
use Http\HttplugBundle\HttplugBundle;
use Nyholm\BundleTest\BaseBundleTestCase;
use Translation\PlatformAdapter\Loco\Bridge\Symfony\TranslationAdapterLocoBundle;
use Translation\PlatformAdapter\Loco\Loco;
use Translation\PlatformAdapter\PhraseApp\Bridge\Symfony\TranslationAdapterPhraseAppBundle;
class BundleInitializationTest extends BaseBundleTestCase
{
protected function getBundleClass()
return TranslationAdapterPhraseAppBundle::class;
}
public function testRegisterBundle()
$kernel = $this->createKernel();
$kernel->addBundle(HttplugBundle::class);
$this->bootKernel();
$container = $this->getContainer();
$this->assertTrue($container->has('php_translation.adapter.phrase_app'));
$service = $container->get('php_translation.adapter.phrase_app');
$this->assertInstanceOf(Loco::class, $service);