1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
<?php
/**
* webtrees: online genealogy
* Copyright (C) 2015 webtrees development team
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/**
* Unit tests for the global functions in the file includes/functions/functions_print.php
*/
class FunctionsPrintTest extends PHPUnit_Framework_TestCase {
/**
* Prepare the environment for these tests
*/
public function setUp() {
}
/**
* Test that function print_pedigree_person() exists in the correct namespace.
*/
public function testFunctionPrintPedigreePersonExists() {
$this->assertEquals(function_exists('print_pedigree_person'), true);
}
/**
/**
* Test that function print_note_record() exists in the correct namespace.
*/
public function testFunctionPrintNoteRecordExists() {
$this->assertEquals(function_exists('print_note_record'), true);
}
/**
* Test that function print_fact_notes() exists in the correct namespace.
*/
public function testFunctionPrintFactNotesExists() {
$this->assertEquals(function_exists('print_fact_notes'), true);
}
/**
* Test that function help_link() exists in the correct namespace.
*/
public function testFunctionHelpLinkExists() {
$this->assertEquals(function_exists('help_link'), true);
}
/**
* Test that function wiki_help_link() exists in the correct namespace.
*/
public function testFunctionWikiHelpLinkExists() {
$this->assertEquals(function_exists('wiki_help_link'), true);
}
/**
* Test that function highlight_search_hits() exists in the correct namespace.
*/
public function testFunctionHighlightSearchHitsExists() {
$this->assertEquals(function_exists('highlight_search_hits'), true);
}
/**
* Test that function format_asso_rela_record() exists in the correct namespace.
*/
public function testFunctionFormatAssoRelaRecordExists() {
$this->assertEquals(function_exists('format_asso_rela_record'), true);
}
/**
* Test that function format_parents_age() exists in the correct namespace.
*/
public function testFunctionFormatParentsAgeExists() {
$this->assertEquals(function_exists('format_parents_age'), true);
}
/**
* Test that function format_fact_date() exists in the correct namespace.
*/
public function testFunctionFormatFactDateExists() {
$this->assertEquals(function_exists('format_fact_date'), true);
}
/**
* Test that function format_fact_place() exists in the correct namespace.
*/
public function testFunctionFormatFactPlaceExists() {
$this->assertEquals(function_exists('format_fact_place'), true);
}
/**
* Test that function CheckFactUnique() exists in the correct namespace.
*/
public function testFunctionCheckFactUniqueExists() {
$this->assertEquals(function_exists('CheckFactUnique'), true);
}
/**
* Test that function print_add_new_fact() exists in the correct namespace.
*/
public function testFunctionPrintAddNewFactExists() {
$this->assertEquals(function_exists('print_add_new_fact'), true);
}
/**
* Test that function init_calendar_popup() exists in the correct namespace.
*/
public function testFunctionInitCalendarPopupExists() {
$this->assertEquals(function_exists('init_calendar_popup'), true);
}
/**
* Test that function print_findindi_link() exists in the correct namespace.
*/
public function testFunctionPrintFindindiLinkExists() {
$this->assertEquals(function_exists('print_findindi_link'), true);
}
/**
* Test that function print_findplace_link() exists in the correct namespace.
*/
public function testFunctionPrintFindplaceLinkExists() {
$this->assertEquals(function_exists('print_findplace_link'), true);
}
/**
* Test that function print_findfamily_link() exists in the correct namespace.
*/
public function testFunctionPrintFindfamilyLinkExists() {
$this->assertEquals(function_exists('print_findfamily_link'), true);
}
/**
* Test that function print_specialchar_link() exists in the correct namespace.
*/
public function testFunctionPrintSpecialcharLinkExists() {
$this->assertEquals(function_exists('print_specialchar_link'), true);
}
/**
* Test that function print_autopaste_link() exists in the correct namespace.
*/
public function testFunctionPrintAutopasteLinkExists() {
$this->assertEquals(function_exists('print_autopaste_link'), true);
}
/**
* Test that function print_findsource_link() exists in the correct namespace.
*/
public function testFunctionPrintFindsourceLinkExists() {
$this->assertEquals(function_exists('print_findsource_link'), true);
}
/**
* Test that function print_findnote_link() exists in the correct namespace.
*/
public function testFunctionPrintFindnoteLinkExists() {
$this->assertEquals(function_exists('print_findnote_link'), true);
}
/**
* Test that function print_findrepository_link() exists in the correct namespace.
*/
public function testFunctionPrintFindrepositoryLinkExists() {
$this->assertEquals(function_exists('print_findrepository_link'), true);
}
/**
* Test that function print_findmedia_link() exists in the correct namespace.
*/
public function testFunctionPrintFindmediaLinkExists() {
$this->assertEquals(function_exists('print_findmedia_link'), true);
}
/**
* Test that function print_findfact_link() exists in the correct namespace.
*/
public function testFunctionPrintFindfactLinkExists() {
$this->assertEquals(function_exists('print_findfact_link'), true);
}
/**
* Test that function get_lds_glance() exists in the correct namespace.
*/
public function testFunctionGetLdsGlanceExists() {
$this->assertEquals(function_exists('get_lds_glance'), true);
}
}
|