1
- <?php //[STAMP] f42e5bb6e7d59c610037cae7f412a84d
1
+ <?php //[STAMP] b0f4e34cc85e2868044e220d003d5a70
2
2
namespace Vjik \Codeception \DatabasePopulator \Tests \_generated ;
3
3
4
4
// This class was automatically generated by build task
@@ -25,12 +25,12 @@ abstract protected function getScenario();
25
25
* $I->seeNumRecords(30, 'books'); //executed on db_books database
26
26
* //All the next queries will be on db_books
27
27
* ```
28
- * @param $databaseKey
28
+ *
29
29
* @throws ModuleConfigException
30
30
* @see \Codeception\Module\Db::amConnectedToDatabase()
31
31
*/
32
- public function amConnectedToDatabase ($ databaseKey ) {
33
- return $ this ->getScenario ()->runStep (new \Codeception \Step \Condition ('amConnectedToDatabase ' , func_get_args ()));
32
+ public function amConnectedToDatabase (string $ databaseKey ): void {
33
+ $ this ->getScenario ()->runStep (new \Codeception \Step \Condition ('amConnectedToDatabase ' , func_get_args ()));
34
34
}
35
35
36
36
@@ -67,12 +67,12 @@ public function amConnectedToDatabase($databaseKey) {
67
67
* exception on failure.
68
68
*
69
69
* @param $databaseKey
70
- * @param \Codeception\Util\ ActionSequence|array|callable $actions
70
+ * @param ActionSequence|array|callable $actions
71
71
* @throws ModuleConfigException
72
72
* @see \Codeception\Module\Db::performInDatabase()
73
73
*/
74
- public function performInDatabase ($ databaseKey , $ actions ) {
75
- return $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('performInDatabase ' , func_get_args ()));
74
+ public function performInDatabase ($ databaseKey , $ actions ): void {
75
+ $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('performInDatabase ' , func_get_args ()));
76
76
}
77
77
78
78
@@ -84,16 +84,10 @@ public function performInDatabase($databaseKey, $actions) {
84
84
* ```php
85
85
* <?php
86
86
* $I->haveInDatabase('users', array('name' => 'miles', 'email' => '[email protected] '));
87
- * ?>
88
87
* ```
89
- *
90
- * @param string $table
91
- * @param array $data
92
- *
93
- * @return integer $id
94
88
* @see \Codeception\Module\Db::haveInDatabase()
95
89
*/
96
- public function haveInDatabase ($ table , array $ data ) {
90
+ public function haveInDatabase (string $ table , array $ data ): int {
97
91
return $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('haveInDatabase ' , func_get_args ()));
98
92
}
99
93
@@ -119,14 +113,10 @@ public function haveInDatabase($table, array $data) {
119
113
* ```
120
114
*
121
115
* Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`.
122
- *
123
- *
124
- * @param string $table
125
- * @param array $criteria
126
116
* @see \Codeception\Module\Db::seeInDatabase()
127
117
*/
128
- public function seeInDatabase ($ table , $ criteria = []) {
129
- return $ this ->getScenario ()->runStep (new \Codeception \Step \Assertion ('seeInDatabase ' , func_get_args ()));
118
+ public function seeInDatabase (string $ table , array $ criteria = []): void {
119
+ $ this ->getScenario ()->runStep (new \Codeception \Step \Assertion ('seeInDatabase ' , func_get_args ()));
130
120
}
131
121
/**
132
122
* [!] Method is generated. Documentation taken from corresponding module.
@@ -150,14 +140,10 @@ public function seeInDatabase($table, $criteria = []) {
150
140
* ```
151
141
*
152
142
* Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`.
153
- *
154
- *
155
- * @param string $table
156
- * @param array $criteria
157
143
* @see \Codeception\Module\Db::seeInDatabase()
158
144
*/
159
- public function canSeeInDatabase ($ table , $ criteria = []) {
160
- return $ this ->getScenario ()->runStep (new \Codeception \Step \ConditionalAssertion ('seeInDatabase ' , func_get_args ()));
145
+ public function canSeeInDatabase (string $ table , array $ criteria = []): void {
146
+ $ this ->getScenario ()->runStep (new \Codeception \Step \ConditionalAssertion ('seeInDatabase ' , func_get_args ()));
161
147
}
162
148
163
149
@@ -169,16 +155,15 @@ public function canSeeInDatabase($table, $criteria = []) {
169
155
* ```php
170
156
* <?php
171
157
* $I->seeNumRecords(1, 'users', ['name' => 'davert'])
172
- * ?>
173
158
* ```
174
159
*
175
160
* @param int $expectedNumber Expected number
176
161
* @param string $table Table name
177
162
* @param array $criteria Search criteria [Optional]
178
163
* @see \Codeception\Module\Db::seeNumRecords()
179
164
*/
180
- public function seeNumRecords ($ expectedNumber , $ table , array $ criteria = []) {
181
- return $ this ->getScenario ()->runStep (new \Codeception \Step \Assertion ('seeNumRecords ' , func_get_args ()));
165
+ public function seeNumRecords (int $ expectedNumber , string $ table , array $ criteria = []): void {
166
+ $ this ->getScenario ()->runStep (new \Codeception \Step \Assertion ('seeNumRecords ' , func_get_args ()));
182
167
}
183
168
/**
184
169
* [!] Method is generated. Documentation taken from corresponding module.
@@ -189,16 +174,15 @@ public function seeNumRecords($expectedNumber, $table, array $criteria = []) {
189
174
* ```php
190
175
* <?php
191
176
* $I->seeNumRecords(1, 'users', ['name' => 'davert'])
192
- * ?>
193
177
* ```
194
178
*
195
179
* @param int $expectedNumber Expected number
196
180
* @param string $table Table name
197
181
* @param array $criteria Search criteria [Optional]
198
182
* @see \Codeception\Module\Db::seeNumRecords()
199
183
*/
200
- public function canSeeNumRecords ($ expectedNumber , $ table , array $ criteria = []) {
201
- return $ this ->getScenario ()->runStep (new \Codeception \Step \ConditionalAssertion ('seeNumRecords ' , func_get_args ()));
184
+ public function canSeeNumRecords (int $ expectedNumber , string $ table , array $ criteria = []): void {
185
+ $ this ->getScenario ()->runStep (new \Codeception \Step \ConditionalAssertion ('seeNumRecords ' , func_get_args ()));
202
186
}
203
187
204
188
@@ -225,13 +209,10 @@ public function canSeeNumRecords($expectedNumber, $table, array $criteria = [])
225
209
* ```
226
210
*
227
211
* Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`.
228
- *
229
- * @param string $table
230
- * @param array $criteria
231
212
* @see \Codeception\Module\Db::dontSeeInDatabase()
232
213
*/
233
- public function dontSeeInDatabase ($ table , $ criteria = []) {
234
- return $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('dontSeeInDatabase ' , func_get_args ()));
214
+ public function dontSeeInDatabase (string $ table , array $ criteria = []): void {
215
+ $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('dontSeeInDatabase ' , func_get_args ()));
235
216
}
236
217
/**
237
218
* [!] Method is generated. Documentation taken from corresponding module.
@@ -257,13 +238,10 @@ public function dontSeeInDatabase($table, $criteria = []) {
257
238
* ```
258
239
*
259
240
* Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`.
260
- *
261
- * @param string $table
262
- * @param array $criteria
263
241
* @see \Codeception\Module\Db::dontSeeInDatabase()
264
242
*/
265
- public function cantSeeInDatabase ($ table , $ criteria = []) {
266
- return $ this ->getScenario ()->runStep (new \Codeception \Step \ConditionalAssertion ('dontSeeInDatabase ' , func_get_args ()));
243
+ public function cantSeeInDatabase (string $ table , array $ criteria = []): void {
244
+ $ this ->getScenario ()->runStep (new \Codeception \Step \ConditionalAssertion ('dontSeeInDatabase ' , func_get_args ()));
267
245
}
268
246
269
247
@@ -277,15 +255,9 @@ public function cantSeeInDatabase($table, $criteria = []) {
277
255
* <?php
278
256
* $mails = $I->grabColumnFromDatabase('users', 'email', array('name' => 'RebOOter'));
279
257
* ```
280
- *
281
- * @param string $table
282
- * @param string $column
283
- * @param array $criteria
284
- *
285
- * @return array
286
258
* @see \Codeception\Module\Db::grabColumnFromDatabase()
287
259
*/
288
- public function grabColumnFromDatabase ($ table , $ column , array $ criteria = []) {
260
+ public function grabColumnFromDatabase (string $ table , string $ column , array $ criteria = []): array {
289
261
return $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('grabColumnFromDatabase ' , func_get_args ()));
290
262
}
291
263
@@ -310,14 +282,10 @@ public function grabColumnFromDatabase($table, $column, array $criteria = []) {
310
282
*
311
283
* Supported operators: `<`, `>`, `>=`, `<=`, `!=`, `like`.
312
284
*
313
- * @param string $table
314
- * @param string $column
315
- * @param array $criteria
316
- *
317
285
* @return mixed Returns a single column value or false
318
286
* @see \Codeception\Module\Db::grabFromDatabase()
319
287
*/
320
- public function grabFromDatabase ($ table , $ column , $ criteria = []) {
288
+ public function grabFromDatabase (string $ table , string $ column , array $ criteria = []) {
321
289
return $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('grabFromDatabase ' , func_get_args ()));
322
290
}
323
291
@@ -329,11 +297,10 @@ public function grabFromDatabase($table, $column, $criteria = []) {
329
297
*
330
298
* @param string $table Table name
331
299
* @param array $criteria Search criteria [Optional]
332
- *
333
300
* @return int
334
301
* @see \Codeception\Module\Db::grabNumRecords()
335
302
*/
336
- public function grabNumRecords ($ table , array $ criteria = []) {
303
+ public function grabNumRecords (string $ table , array $ criteria = []): int {
337
304
return $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('grabNumRecords ' , func_get_args ()));
338
305
}
339
306
@@ -346,16 +313,11 @@ public function grabNumRecords($table, array $criteria = []) {
346
313
* ```php
347
314
* <?php
348
315
* $I->updateInDatabase('users', array('isAdmin' => true), array('email' => '[email protected] '));
349
- * ?>
350
316
* ```
351
- *
352
- * @param string $table
353
- * @param array $data
354
- * @param array $criteria
355
317
* @see \Codeception\Module\Db::updateInDatabase()
356
318
*/
357
- public function updateInDatabase ($ table , array $ data , array $ criteria = []) {
358
- return $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('updateInDatabase ' , func_get_args ()));
319
+ public function updateInDatabase (string $ table , array $ data , array $ criteria = []): void {
320
+ $ this ->getScenario ()->runStep (new \Codeception \Step \Action ('updateInDatabase ' , func_get_args ()));
359
321
}
360
322
361
323
0 commit comments