[SecurityBundle] fixed tests where cleanup was not done properly

This commit is contained in:
Fabien Potencier 2015-01-25 07:09:57 +01:00
parent aed787878f
commit f853cf2dd9

View File

@ -151,6 +151,20 @@ class SetAclCommandTest extends WebTestCase
$this->assertTrue($acl2->isGranted($permissionMap->getMasks($grantedPermission, null), array($roleSecurityIdentity))); $this->assertTrue($acl2->isGranted($permissionMap->getMasks($grantedPermission, null), array($roleSecurityIdentity)));
} }
protected function setUp()
{
parent::setUp();
$this->deleteTmpDir('Acl');
}
protected function tearDown()
{
parent::tearDown();
$this->deleteTmpDir('Acl');
}
private function getApplication() private function getApplication()
{ {
$kernel = $this->createKernel(array('test_case' => 'Acl')); $kernel = $this->createKernel(array('test_case' => 'Acl'));