File tree Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Expand file tree Collapse file tree 1 file changed +17
-14
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,23 @@ class SetAclCommandTest extends WebTestCase
3030 const OBJECT_CLASS = 'Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\AclBundle\Entity\Car ' ;
3131 const SECURITY_CLASS = 'Symfony\Component\Security\Core\User\User ' ;
3232
33+ protected function setUp ()
34+ {
35+ if (!class_exists ('PDO ' ) || !in_array ('sqlite ' , \PDO ::getAvailableDrivers ())) {
36+ self ::markTestSkipped ('This test requires SQLite support in your environment ' );
37+ }
38+ parent ::setUp ();
39+
40+ $ this ->deleteTmpDir ('Acl ' );
41+ }
42+
43+ protected function tearDown ()
44+ {
45+ parent ::tearDown ();
46+
47+ $ this ->deleteTmpDir ('Acl ' );
48+ }
49+
3350 public function testSetAclUser ()
3451 {
3552 $ objectId = 1 ;
@@ -151,20 +168,6 @@ public function testSetAclClassScope()
151168 $ this ->assertTrue ($ acl2 ->isGranted ($ permissionMap ->getMasks ($ grantedPermission , null ), array ($ roleSecurityIdentity )));
152169 }
153170
154- protected function setUp ()
155- {
156- parent ::setUp ();
157-
158- $ this ->deleteTmpDir ('Acl ' );
159- }
160-
161- protected function tearDown ()
162- {
163- parent ::tearDown ();
164-
165- $ this ->deleteTmpDir ('Acl ' );
166- }
167-
168171 private function getApplication ()
169172 {
170173 $ kernel = $ this ->createKernel (array ('test_case ' => 'Acl ' ));
You can’t perform that action at this time.
0 commit comments