ultimix
Main Page
Data Structures
Files
Examples
File List
Globals
unit_tests.php
Go to the documentation of this file.
1
<?php
2
3
/*
4
* This source code is a part of the Ultimix Project.
5
* It is distributed under BSD license. All other third side source code (like tinyMCE) is distributed under
6
* it's own license wich could be found from the corresponding files or sources.
7
* This source code is provided "as is" without any warranties or garanties.
8
*
9
* Have a nice day!
10
*
11
* @url http://ultimix.sorceforge.net
12
*
13
* @author Alexey "gdever" Dodonov
14
*/
15
26
class
unit_tests
{
27
28
var
$CacheSwitch
;
29
40
function
set_up
()
41
{
42
}
43
54
function
tear_down
()
55
{
56
}
57
68
function
test_load_package
()
69
{
70
get_package
(
'template_manager'
,
'last'
, __FILE__ );
71
72
return
(
'TEST PASSED'
);
73
}
74
85
function
test_display_list
()
86
{
87
$PageComposer =
get_package_object
(
'page::page_composer'
);
88
$PageContent = $PageComposer->get_page(
'template_manager'
);
89
90
if
( stripos( $PageContent ,
'admin'
) ===
false
)
91
{
92
print(
'ERROR: template list was not displayed'
);
93
return
;
94
}
95
96
return
(
'TEST PASSED'
);
97
}
98
}
99
100
?>
packages
template_manager
include
php
unit_tests.php
Generated on Fri Sep 28 2012 17:16:37 for ultimix by
1.8.1.2