class DeleteCommandTest extends CommandTestCase (View source)

Functional test for delete command.

Properties

protected string $cacheProviderClass from CommandTestCase
protected string $cacheName from CommandTestCase
protected string $cacheId from CommandTestCase
protected $container from CommandTestCase
protected Cache $provider from CommandTestCase
protected Kernel $kernel from CommandTestCase
protected Application $app from CommandTestCase
protected DeleteCommand $command
protected CommandTester $tester

Methods

ContainerBuilder
createContainer(array $bundles = array('YamlBundle'), string $vendor = null)

No description

from TestCase
ContainerBuilder
createServiceContainer(array $bundles = array('YamlBundle'), string $vendor = null)

No description

from TestCase
loadFromFile(ContainerBuilder $container, type $file)

No description

ContainerBuilder
compileContainer(string $file, ContainerBuilder $container = null)

No description

overrideContainer(ContainerBuilder $container)

Override this hook in your functional TestCase to customize the container

setUp()

No description

CommandTester
getTester(CacheCommand $command)

No description

testDeleteSuccess()

Tests a cache delete success.

testDeleteAll()

Tests a cache delete all.

Details

protected ContainerBuilder createContainer(array $bundles = array('YamlBundle'), string $vendor = null)

Parameters

array $bundles
string $vendor

Return Value

ContainerBuilder

protected ContainerBuilder createServiceContainer(array $bundles = array('YamlBundle'), string $vendor = null)

Parameters

array $bundles
string $vendor

Return Value

ContainerBuilder

protected loadFromFile(ContainerBuilder $container, type $file)

Parameters

ContainerBuilder $container
type $file

protected ContainerBuilder compileContainer(string $file, ContainerBuilder $container = null)

Parameters

string $file
ContainerBuilder $container

Return Value

ContainerBuilder

protected overrideContainer(ContainerBuilder $container)

Override this hook in your functional TestCase to customize the container

Parameters

ContainerBuilder $container

setUp()

protected CommandTester getTester(CacheCommand $command)

Parameters

CacheCommand $command

Return Value

CommandTester

testDeleteSuccess()

Tests a cache delete success.

testDeleteAll()

Tests a cache delete all.