blast-project/tests-bundle

Extends Symfony KernelTestCase

Maintainers

Package info

github.com/blast-project/TestsBundle

Type:symfony-bundle

pkg:composer/blast-project/tests-bundle

Statistics

Installs: 827

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 0

0.6.4 2017-11-03 14:59 UTC

This package is not auto-updated.

Last update: 2026-03-15 11:48:30 UTC


README

Build Status Coverage Status License

Latest Stable Version Latest Unstable Version Total Downloads

Extends Symfony KernelTestCase with BlastTestCase and allow you to quick access some usefull routine...

Installation

Downloading

$ composer require blast-project/tests-bundle

Example

Check services blast*

use Blast\TestsBundle\Functional\BlastTestCase;

class BlastServiceTest extends BlastTestCase
{
    protected function setUp()
    {
        parent::setUp();
    }
    
    public function testServicesAreInitializable()
    {
        $this->isServicesAreInitializable('blast');
    }
}

Launch console command:

use Blast\TestsBundle\Functional\BlastTestCase;

class CollectGarbageCommandTest extends BlastTestCase
{
    protected function setUp()
    {
        parent::setUp();
    }
    
    public function testCommand()
    {
      $this->cacheClear();
      // or
      $this->launchCommand([
            'command' => 'cache:clear',
            '--no-warmup' => true,
      ]);
    }
}