blast-project / tests-bundle
Extends Symfony KernelTestCase
Installs: 820
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- phpunit/phpunit: ^6.4
- symfony/console: >=3.2
- symfony/phpunit-bridge: >=3.2
- symfony/symfony: >=3.2
Suggests
- blast-project/core-bundle: Define sonata admins in yml and more
This package is not auto-updated.
Last update: 2024-10-27 04:13:02 UTC
README
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, ]); } }