File tree 1 file changed +17
-14
lines changed
src/Symfony/Bundle/SecurityBundle/Tests/Functional 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
30
30
const OBJECT_CLASS = 'Symfony\Bundle\SecurityBundle\Tests\Functional\Bundle\AclBundle\Entity\Car ' ;
31
31
const SECURITY_CLASS = 'Symfony\Component\Security\Core\User\User ' ;
32
32
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
+
33
50
public function testSetAclUser ()
34
51
{
35
52
$ objectId = 1 ;
@@ -151,20 +168,6 @@ public function testSetAclClassScope()
151
168
$ this ->assertTrue ($ acl2 ->isGranted ($ permissionMap ->getMasks ($ grantedPermission , null ), array ($ roleSecurityIdentity )));
152
169
}
153
170
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
-
168
171
private function getApplication ()
169
172
{
170
173
$ kernel = $ this ->createKernel (array ('test_case ' => 'Acl ' ));
You can’t perform that action at this time.
0 commit comments