tests/unit/Procurement/ProcurementTest.php 1 location
|
@@ 10-20 (lines=11) @@
|
7 |
|
{ |
8 |
|
private $kernel; |
9 |
|
|
10 |
|
function setUp() |
11 |
|
{ |
12 |
|
$db = MDB2::singleton(DB_DSN); |
13 |
|
$db->exec('TRUNCATE procurement'); |
14 |
|
$db->exec('TRUNCATE procurement_item'); |
15 |
|
$db->exec('TRUNCATE accounting_account'); |
16 |
|
$db->exec('TRUNCATE accounting_post'); |
17 |
|
$db->exec('TRUNCATE accounting_year'); |
18 |
|
$db->exec('TRUNCATE accounting_voucher'); |
19 |
|
} |
20 |
|
|
21 |
|
function createKernel() |
22 |
|
{ |
23 |
|
$kernel = new Stub_Kernel; |
tests/unit/Accounting/YearEndTest.php 1 location
|
@@ 62-71 (lines=10) @@
|
59 |
|
$this->end = $this->createYearEnd(); |
60 |
|
} |
61 |
|
|
62 |
|
function tearDown() |
63 |
|
{ |
64 |
|
$db = MDB2::singleton(DB_DSN); |
65 |
|
$db->exec('TRUNCATE accounting_year_end'); |
66 |
|
$db->exec('TRUNCATE accounting_year_end_action'); |
67 |
|
$db->exec('TRUNCATE accounting_year_end_statement'); |
68 |
|
$db->exec('TRUNCATE setting'); |
69 |
|
$db->exec('TRUNCATE accounting_year'); |
70 |
|
$db->exec('TRUNCATE accounting_account'); |
71 |
|
} |
72 |
|
|
73 |
|
function createYearEnd() |
74 |
|
{ |