Skip to content

Commit 9dd9ca9

Browse files
[SecurityBundle] Skip SetAclCommandTest when sqlite is not available
1 parent 283ba52 commit 9dd9ca9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/Functional/SetAclCommandTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ 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+
}
39+
3340
public function testSetAclUser()
3441
{
3542
$objectId = 1;

0 commit comments

Comments
 (0)