Add Unit Tests

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1653 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2014-08-01 12:48:37 +00:00
parent 086e2d1bcf
commit 45b70602a7
3 changed files with 184 additions and 0 deletions

20
Tests/dblayerTest.php Normal file
View 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"] = "";
}
}