Add Unit Tests
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1653 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
20
Tests/dblayerTest.php
Normal file
20
Tests/dblayerTest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
/** DomFramework - Tests
|
||||
@package domframework
|
||||
@author Dominique Fournier <dominique@fournier38.fr> */
|
||||
|
||||
/** Test the dblayer.php file */
|
||||
class test_dblayer extends PHPUnit_Framework_TestCase
|
||||
{
|
||||
public function test_createDB ()
|
||||
{
|
||||
// Must use the model to create the database structure as there is no
|
||||
// creation of tables in controller
|
||||
$configuration = new configuration ();
|
||||
$dbconfig = $configuration->get ("database");
|
||||
if (! isset ($dbconfig["tableprefix"]))
|
||||
$dbconfig["tableprefix"] = "";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user