use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Tester\CommandCompletionTester;
use Symfony\Component\Console\Tester\CommandTester;
use Symfony\Component\DependencyInjection\ServiceLocator;
use Symfony\Contracts\Cache\TagAwareCacheInterface;
class CachePoolInvalidateTagsCommandTest extends TestCase
{ public function testComplete() { $tester =
new CommandCompletionTester($this->
createCommand(['foo' => null, 'bar' => null
]));
$suggestions =
$tester->
complete(['--pool='
]);
$this->
assertSame(['foo', 'bar'
],
$suggestions);
} public function testInvalidatesTagsForAllPoolsByDefault() { $tagsToInvalidate =
['tag1', 'tag2'
];
$foo =
$this->
createMock(TagAwareCacheInterface::
class);