Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ViewTest.php « unit « tests - github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 519eed4a5a90be65c1a141b43414047b8277e3ff (plain)
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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
<?php

/**
 * PHPPgAdmin v6.0.0-RC7
 */

class ViewTest extends \Codeception\Test\Unit
{
    /**
     * @var \UnitTester
     */
    protected $tester;
    protected $container;

    protected function _before()
    {
        $Helper          = $this->getModule('\Helper\Unit');
        $this->container = $Helper->getContainer();
        $this->container->misc->setNoDBConnection(true);
        //\Codeception\Util\Debug::debug('BASE_PATH is ' . \BASE_PATH);
    }

    protected function _after()
    {
    }

    // tests

    public function testAcinsertView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/acinsert.php';
        $this->assertSame($controller->controller_name, 'AcinsertController', 'controller name should be AcinsertController');
    }

    public function testAggregatesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/aggregates.php';
        $this->assertSame($controller->controller_name, 'AggregatesController', 'controller name should be AggregatesController');
    }

    public function testAlldbView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/alldb.php';
        $this->assertSame($controller->controller_name, 'AlldbController', 'controller name should be AlldbController');
    }

    public function testBrowserView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/browser.php';
        $this->assertSame($controller->controller_name, 'BrowserController', 'controller name should be BrowserController');
    }

    public function testCastsView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/casts.php';
        $this->assertSame($controller->controller_name, 'CastsController', 'controller name should be CastsController');
    }

    public function testColpropertiesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/colproperties.php';
        $this->assertSame($controller->controller_name, 'ColpropertiesController', 'controller name should be ColpropertiesController');
    }

    public function testConstraintsView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/constraints.php';
        $this->assertSame($controller->controller_name, 'ConstraintsController', 'controller name should be ConstraintsController');
    }

    public function testConversionsView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/conversions.php';
        $this->assertSame($controller->controller_name, 'ConversionsController', 'controller name should be ConversionsController');
    }

    public function testDatabaseView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/database.php';
        $this->assertSame($controller->controller_name, 'DatabaseController', 'controller name should be DatabaseController');
    }

    public function testDataexportView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/dataexport.php';
        $this->assertSame($controller->controller_name, 'DataexportController', 'controller name should be DataexportController');
    }

    public function testDataimportView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/dataimport.php';
        $this->assertSame($controller->controller_name, 'DataimportController', 'controller name should be DataimportController');
    }

    public function testDbexportView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/dbexport.php';
        $this->assertSame($controller->controller_name, 'DbexportController', 'controller name should be DbexportController');
    }

    public function testDisplayView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/display.php';
        $this->assertSame($controller->controller_name, 'DisplayController', 'controller name should be DisplayController');
    }

    public function testDomainsView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/domains.php';
        $this->assertSame($controller->controller_name, 'DomainsController', 'controller name should be DomainsController');
    }

    public function testFulltextView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/fulltext.php';
        $this->assertSame($controller->controller_name, 'FulltextController', 'controller name should be FulltextController');
    }

    public function testFunctionsView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/functions.php';
        $this->assertSame($controller->controller_name, 'FunctionsController', 'controller name should be FunctionsController');
    }

    public function testGroupsView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/groups.php';
        $this->assertSame($controller->controller_name, 'GroupsController', 'controller name should be GroupsController');
    }

    public function testHelpView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/help.php';
        $this->assertSame($controller->controller_name, 'HelpController', 'controller name should be HelpController');
    }

    public function testHistoryView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/history.php';
        $this->assertSame($controller->controller_name, 'HistoryController', 'controller name should be HistoryController');
    }

    public function testIndexesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/indexes.php';
        $this->assertSame($controller->controller_name, 'IndexesController', 'controller name should be IndexesController');
    }

    public function testInfoView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/info.php';
        $this->assertSame($controller->controller_name, 'InfoController', 'controller name should be InfoController');
    }

    public function testIntroView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/intro.php';
        $this->assertSame($controller->controller_name, 'IntroController', 'controller name should be IntroController');
    }

    public function testLanguagesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/languages.php';
        $this->assertSame($controller->controller_name, 'LanguagesController', 'controller name should be LanguagesController');
    }

    public function testLoginView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/login.php';
        $this->assertSame($controller->controller_name, 'LoginController', 'controller name should be LoginController');
    }

    public function testMaterializedviewpropertiesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/materializedviewproperties.php';
        $this->assertSame($controller->controller_name, 'MaterializedviewpropertiesController', 'controller name should be MaterializedviewpropertiesController');
    }

    public function testMaterializedviewsView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/materializedviews.php';
        $this->assertSame($controller->controller_name, 'MaterializedviewsController', 'controller name should be MaterializedviewsController');
    }

    public function testOpclassesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/opclasses.php';
        $this->assertSame($controller->controller_name, 'OpclassesController', 'controller name should be OpclassesController');
    }

    public function testOperatorsView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/operators.php';
        $this->assertSame($controller->controller_name, 'OperatorsController', 'controller name should be OperatorsController');
    }

    public function testPrivilegesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/privileges.php';
        $this->assertSame($controller->controller_name, 'PrivilegesController', 'controller name should be PrivilegesController');
    }

    public function testRolesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/roles.php';
        $this->assertSame($controller->controller_name, 'RolesController', 'controller name should be RolesController');
    }

    public function testRulesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/rules.php';
        $this->assertSame($controller->controller_name, 'RulesController', 'controller name should be RulesController');
    }

    public function testSchemasView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/schemas.php';
        $this->assertSame($controller->controller_name, 'SchemasController', 'controller name should be SchemasController');
    }

    public function testSequencesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/sequences.php';
        $this->assertSame($controller->controller_name, 'SequencesController', 'controller name should be SequencesController');
    }

    public function testServersView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/servers.php';
        $this->assertSame($controller->controller_name, 'ServersController', 'controller name should be ServersController');
    }

    public function testSqleditView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/sqledit.php';
        $this->assertSame($controller->controller_name, 'SqleditController', 'controller name should be SqleditController');
    }

    public function testSqlView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/sql.php';
        $this->assertSame($controller->controller_name, 'SqlController', 'controller name should be SqlController');
    }

    public function testTablespacesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/tablespaces.php';
        $this->assertSame($controller->controller_name, 'TablespacesController', 'controller name should be TablespacesController');
    }

    public function testTablesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/tables.php';
        $this->assertSame($controller->controller_name, 'TablesController', 'controller name should be TablesController');
    }

    public function testTblpropertiesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/tblproperties.php';
        $this->assertSame($controller->controller_name, 'TblpropertiesController', 'controller name should be TblpropertiesController');
    }

    public function testTriggersView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/triggers.php';
        $this->assertSame($controller->controller_name, 'TriggersController', 'controller name should be TriggersController');
    }

    public function testTypesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/types.php';
        $this->assertSame($controller->controller_name, 'TypesController', 'controller name should be TypesController');
    }

    public function testUsersView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/users.php';
        $this->assertSame($controller->controller_name, 'UsersController', 'controller name should be UsersController');
    }

    public function testViewpropertiesView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/viewproperties.php';
        $this->assertSame($controller->controller_name, 'ViewpropertiesController', 'controller name should be ViewpropertiesController');
    }

    public function testViewsView()
    {
        $container = $this->container;
        require BASE_PATH.'/tests/views/views.php';
        $this->assertSame($controller->controller_name, 'ViewsController', 'controller name should be ViewsController');
    }
}