ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
PDOTest.php
Go to the documentation of this file.
1 <?php
2 
4 
5 abstract class PDOTest extends AbstractTest {
6 
8 
9  function getBackend() {
10 
11  $this->dropTables('locks');
12  $this->createSchema('locks');
13 
14  $pdo = $this->getPDO();
15 
16  return new PDO($pdo);
17 
18  }
19 
20 }
getPDO()
Alias for getDb.
dropTables($tableNames)
Drops tables, if they exist.
createSchema($schemaName)
Uses .sql files from the examples directory to initialize the database.
trait DbTestHelperTrait
$pdo
Definition: migrateto20.php:62