forked from palantirnet/drupal-rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deprecation-index.yml
461 lines (461 loc) · 30 KB
/
deprecation-index.yml
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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
'drupal_set_message()':
Rector: DrupalSetMessageRector.php
PHPStan: 'Call to deprecated function drupal_set_message(). Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\Core\Messenger\MessengerInterface::addMessage() instead.'
Examples:
- drupal_set_message.php
- DrupalSetMessageStatic.php
- DrupalSetMessageWithTrait.php
'Drupal::entityManager()':
Rector: EntityManagerRector.php
PHPStan: 'Call to deprecated method entityManager() of class Drupal. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal::entityTypeManager() instead in most cases. If the needed method is not on \Drupal\Core\Entity\EntityTypeManagerInterface, see the deprecated \Drupal\Core\Entity\EntityManager to find the correct interface or service.'
Examples:
- entity_manager.php
- EntityManagerStatic.php
'ControllerBase::entityManager()':
Rector: EntityManagerRector.php
PHPStan: 'Call to deprecated method entityManager() of class Drupal\Core\Controller\ControllerBase. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Most of the time static::entityTypeManager() is supposed to be used instead.'
Examples:
- EntityManagerController.php
'db_insert()':
Rector: DBInsertRector.php
PHPStan: 'Call to deprecated function db_insert(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get a database connection injected into your service from the container and call insert() on it. For example,'
Examples:
- db_insert.php
- DBInsertStatic.php
'db_select()':
Rector: DBSelectRector.php
PHPStan: 'Call to deprecated function db_select(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get a database connection injected into your service from the container and call select() on it. For example,'
Examples:
- db_select.php
- DBSelectStatic.php
'db_query()':
Rector: DBQueryRector.php
PHPStan: 'Call to deprecated function db_query(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get a database connection injected into your service from the container and call query() on it. For example,'
Examples:
- db_query.php
- DBQueryStatic.php
'db_delete()':
Rector: DBDeleteRector.php
PHPStan: 'Call to deprecated function db_delete(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get a database connection injected into your service from the container and call delete() on it. For example,'
Examples:
- db_delete.php
- DBDeleteStatic.php
'db_update()':
Rector: DBUpdateRector.php
PHPStan: 'Call to deprecated function db_update(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Instead, get a database connection injected into your service from the container and call update() on it. For example,'
Examples:
- db_update.php
- DBUpdateStatic.php
'file_prepare_directory()':
Rector: FilePrepareDirectoryRector.php
PHPStan: 'Call to deprecated function file_prepare_directory(). Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use Drupal\Core\File\FileSystemInterface::prepareDirectory().'
Examples:
- file_prepare_directory.php
- FilePrepareDirectoryStatic.php
'file_scan_directory()':
Rector: FileScanDirectoryRector.php
PHPStan: 'Call to deprecated function file_scan_directory(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\Core\File\FileSystemInterface::scanDirectory() instead.'
Examples:
- file_scan_directory.php
- FileScanDirectoryStatic.php
'BrowserTestBase::getMock()':
Rector: BrowserTestBaseGetMock.php
PHPStan: 'Call to deprecated method getMock() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.'
Examples:
- BrowserTestBaseGetMock.php
'KernelTestBase::getMock()':
Rector: KernelTestBaseGetMock.php
PHPStan: 'Call to deprecated method getMock() of class Drupal\KernelTests\KernelTestBase. Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.'
Examples:
- KernelTestBaseGetMock.php
'UnitTestCase::getMock()':
Rector: UnitTestCaseGetMock.php
PHPStan: 'Call to deprecated method getMock() of class Drupal\Tests\UnitTestCase. Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\Tests\PhpunitCompatibilityTrait::createMock() instead.'
Examples:
- UnitTestCaseGetMock.php
'Drupal::url()':
Rector: DrupalURLRector.php
PHPStan: 'Call to deprecated method url() of class Drupal. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Instead create a \Drupal\Core\Url object directly, for example using Url::fromRoute().'
Examples:
- url.php
- DrupalURLStatic.php
'format_date()':
Rector: FormatDateRector.php
PHPStan: 'Call to deprecated function format_date(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal::service(''date.formatter'')->format().'
Examples:
- format_date.php
- FormatDateStatic.php
'Unicode::strlen()':
Rector: UnicodeStrtolowerRector.php
PHPStan: 'Call to deprecated method strlen() of class Drupal\Component\Utility\Unicode. Deprecated in drupal:8.6.0 and is removed from drupal:9.0.0. Use mb_strlen() instead.'
Examples:
- unicode_strlen.php
'Unicode::strtolower()':
Rector: UnicodeStrtolowerRector.php
PHPStan: 'Call to deprecated method strtolower() of class Drupal\Component\Utility\Unicode. Deprecated in drupal:8.6.0 and is removed from drupal:9.0.0. Use mb_strtolower() instead.'
Examples:
- unicode_strtolower.php
- UnicodeStrtolowerStatic.php
'Unicode::substr()':
Rector: UnicodeStrtolowerRector.php
PHPStan: 'Call to deprecated method substr() of class Drupal\Component\Utility\Unicode. Deprecated in drupal:8.6.0 and is removed from drupal:9.0.0. Use mb_substr() instead.'
Examples:
- unicode_substr.php
'FILE_CREATE_DIRECTORY':
Rector: FileCreateDirectoryRector.php
PHPStan: 'Call to deprecated constant FILE_CREATE_DIRECTORY: Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use Drupal\Core\File\FileSystemInterface::CREATE_DIRECTORY.'
Examples:
- file_create_directory.php
- FileCreateDirectoryNoUseStatement.php
'FILE_EXISTS_REPLACE':
Rector: FileExistsReplaceRector.php
PHPStan: 'Call to deprecated constant FILE_EXISTS_REPLACE: Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use Drupal\Core\File\FileSystemInterface::EXISTS_REPLACE.'
Examples:
- file_exists_replace.php
- FileExistsReplaceNoUseStatement.php
'FILE_EXISTS_RENAME':
Rector: FileExistsRenameRector.php
PHPStan: 'Call to deprecated constant FILE_EXISTS_RENAME: Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use Drupal\Core\File\FileSystemInterface::EXISTS_RENAME.'
Examples:
- file_exists_rename.php
- FileExistsRenameNoUseStatement.php
'FILE_MODIFY_PERMISSIONS':
Rector: FileModifyPermissionsRector.php
PHPStan: 'Call to deprecated constant FILE_MODIFY_PERMISSIONS: Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use Drupal\Core\File\FileSystemInterface::MODIFY_PERMISSIONS.'
Examples:
- file_modify_permissions.php
- FileModifyPermissionsNoUseStatement.php
'Drupal::l()':
Rector: DrupalLRector.php
PHPStan: 'Call to deprecated method l() of class Drupal. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\Link::fromTextAndUrl() instead.'
Examples:
- drupal_l.php
- DrupalLStatic.php
'LinkGeneratorTrait::l()':
Rector: LinkGeneratorTraitLRector.php
PHPStan: '\LinkGeneratorTrait::l() is deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use \Drupal\Core\Link::fromTextAndUrl() instead. See https://www.drupal.org/node/2614344.'
Examples:
- LinkGeneratorLWithTrait.php
'drupal_render()':
Rector: DrupalRenderRector.php
PHPStan: 'Call to deprecated function drupal_render(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use the'
Examples:
- DrupalRenderStatic.php
- drupal_render.php
'drupal_render_root()':
Rector: DrupalRenderRootRector.php
PHPStan: 'Call to deprecated function drupal_render_root(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\Render\RendererInterface::renderRoot() instead.'
Examples:
- DrupalRenderRootStatic.php
- drupal_render_root.php
'file_unmanaged_save_data()':
Rector: FileUnmanagedSaveDataRector.php
PHPStan: 'Call to deprecated function file_unmanaged_save_data(). Deprecated in drupal:8.7.0 and is removed from drupal:9.0.0. Use Drupal\Core\File\FileSystemInterface::saveData().'
Examples:
- file_unmanaged_save_data.php
- FileUnmanagedSaveDataStatic.php
'REQUEST_TIME':
Rector: RequestTimeConstRector.php
PHPStan: 'Call to deprecated constant REQUEST_TIME. Deprecated in drupal:8.3.0 and is removed from drupal:10.0.0. Use Drupal::time()->getRequestTime().'
Examples:
- request_time_const.php
'entity_get_display()':
Rector: EntityGetDisplayRector.php
PHPStan: 'Call to deprecated function entity_get_display(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use EntityDisplayRepositoryInterface::getViewDisplay() instead.'
Examples:
- entity_get_display.php
- EntityGetDisplayStatic.php
'entity_get_form_display()':
Rector: EntityGetFormDisplayRector.php
PHPStan: 'Call to deprecated function entity_get_form_display(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use EntityDisplayRepositoryInterface::getFormDisplay() instead.'
Examples:
- entity_get_form_display.php
- EntityGetFormDisplayStatic.php
'file_default_scheme()':
Rector: FileDefaultSchemeRector.php
PHPStan: 'Call to deprecated function file_default_scheme(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal::config(''system.file'')->get(''default_scheme'') instead.'
Examples:
- file_default_scheme.php
- FileDefaultSchemeStatic.php
'EntityInterface:urlInfo()':
Rector: EntityInterfaceUrlInfoRector.php
PHPStan: 'Call to deprecated method urlInfo() of class Drupal\Core\Entity\EntityInterface. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\Entity\EntityInterface::toUrl() instead.'
Examples:
- entity_interface_url_info.php
'EntityInterface:link()':
Rector: EntityInterfaceLinkRector.php
PHPStan: 'Call to deprecated method link() of class Drupal\Core\Entity\EntityInterface. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\EntityInterface::toLink()->toString() instead.'
Examples:
- entity_interface_link.php
'entity_load()':
Rector: EntityLoadRector.php
PHPStan: 'Call to deprecated function entity_load(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity type storage''s load() method.'
Examples:
- entity_load.php
'entity_view()':
Rector: EntityViewRector.php
PHPStan: 'Call to deprecated function entity_view(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity view builder''s view() method for creating a render array:'
Examples:
- entity_view.php
'node_load()':
Rector: NodeLoadRector.php
PHPStan: 'Call to deprecated function node_load(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\node\Entity\Node::load().'
Examples:
- node_load.php
'file_load()':
Rector: FileLoadRector.php
PHPStan: 'Call to deprecated function file_load(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\file\Entity\File::load().'
Examples:
- file_load.php
'user_load()':
Rector: UserLoadRector.php
PHPStan: 'Call to deprecated function user_load(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\user\Entity\User::load().'
Examples:
- user_load.php
'file_directory_temp()':
Rector: FileDirectoryTempRector.php
PHPStan: 'Call to deprecated function file_directory_temp(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\Core\File\FileSystemInterface::getTempDirectory() instead.'
Examples:
- file_directory_temp.php
'file_directory_os_temp()':
Rector: FileDirectoryOsTempRector.php
PHPStan: 'Call to deprecated function file_directory_os_temp(). Deprecated in drupal:8.3.0 and is removed from drupal:9.0.0. Use Drupal\Component\FileSystem\FileSystem::getOsTemporaryDirectory().'
Examples:
- file_directory_os_temp.php
'drupal_realpath()':
Rector: DrupalRealpathRector.php
PHPStan: 'Call to deprecated function drupal_realpath(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Core\File\FileSystem::realpath().'
Examples:
- drupal_realpath.php
- DrupalRealpathStatic.php
'file_uri_target()':
Rector: FileUriTargetRector.php
PHPStan: 'Call to deprecated function file_uri_target(). Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget() instead.'
Examples:
- file_uri_target.php
'entity_create()':
Rector: EntityCreateRector.php
PHPStan: 'Call to deprecated function entity_create(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use The method overriding Entity::create() for the entity type, e.g. \Drupal\node\Entity\Node::create() if the entity type is known. If the entity type is variable, use the entity storage''s create() method to construct a new entity:'
Examples:
- entity_create.php
'entity_delete_multiple()':
Rector: EntityDeleteMultipleRector.php
PHPStan: 'Call to deprecated function entity_delete_multiple(). Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use the entity storage''s \Drupal\Core\Entity\EntityStorageInterface::delete() method to delete multiple entities:'
Examples:
- entity_delete_multiple.php
'SafeMarkup::format()':
Rector: SafeMarkupFormatRector.php
PHPStan: 'Call to deprecated method format() of class Drupal\Component\Utility\SafeMarkup. Deprecated in drupal:8.0.0 and is removed from drupal:9.0.0. Use Drupal\Component\Render\FormattableMarkup.'
Examples:
- safe_markup_format.php
'DATETIME_DATE_STORAGE_FORMAT':
Rector: DatetimeDateStorageFormatRector.php
PHPStan: 'Call to deprecated constant DATETIME_DATE_STORAGE_FORMAT: Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::DATE_STORAGE_FORMAT instead.'
Examples:
- datetime_date_storage_format.php
'DATETIME_DATETIME_STORAGE_FORMAT':
Rector: DatetimeDatetimeStorageFormatRector.php
PHPStan: 'Call to deprecated constant DATETIME_DATETIME_STORAGE_FORMAT: Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::DATETIME_STORAGE_FORMAT instead.'
Examples:
- datetime_datetime_storage_format.php
'DATETIME_STORAGE_TIMEZONE':
Rector: DatetimeStorageTimezoneRector.php
PHPStan: 'Call to deprecated constant DATETIME_STORAGE_TIMEZONE: Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\datetime\Plugin\Field\FieldType\DateTimeItemInterface::STORAGE_TIMEZONE instead.'
Examples:
- datetime_storage_timezone.php
'EntityType::getLowercaseLabel()':
Rector: EntityTypeGetLowercaseLabelRector.php
PHPStan: 'Call to deprecated method getLowercaseLabel() of class Drupal\Core\Entity\EntityTypeInterface. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Instead, you should call getSingularLabel(). See https://www.drupal.org/node/3075567'
Examples:
- entity_type_get_lowercase_label.php
'AssertLegacyTrait::assert()':
Rector: AssertRector.php
PHPStan: 'Call to deprecated method assert() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertTrue() instead.'
Examples:
'AssertLegacyTrait::assertCacheTag()':
Rector: AssertCacheTagRector.php
PHPStan: 'Call to deprecated method assertCacheTag() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseHeaderContains() instead.'
Examples:
'AssertLegacyTrait::assertElementNotPresent()':
Rector: AssertElementNotPresentRector.php
PHPStan: 'Call to deprecated method assertElementNotPresent() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->elementNotExists() instead.'
Examples:
'AssertLegacyTrait::assertElementPresent()':
Rector: AssertElementPresentRector.php
PHPStan: 'Call to deprecated method assertElementPresent() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->elementExists() instead.'
Examples:
'AssertLegacyTrait::assertEqual()':
Rector: AssertEqualRector.php
PHPStan: 'Call to deprecated method assertEqual() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertEquals() instead.'
Examples:
'AssertLegacyTrait::assertEscaped()':
Rector: AssertEscapedRector.php
PHPStan: 'Call to deprecated method assertEscaped() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->assertEscaped() instead.'
Examples:
'AssertLegacyTrait::assertFieldByName()':
Rector: AssertFieldByNameRector.php
PHPStan: 'Call to deprecated method assertFieldByName() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->fieldExists() or $this->assertSession()->buttonExists() or $this->assertSession()->fieldValueEquals() instead.'
Examples:
'AssertLegacyTrait::assertHeader()':
Rector: AssertHeaderRector.php
PHPStan: 'Call to deprecated method assertHeader() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.3.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseHeaderEquals() instead.'
Examples:
'AssertLegacyTrait::assertIdentical()':
Rector: AssertIdenticalRector.php
PHPStan: 'Call to deprecated method assertIdentical() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertSame() instead.'
Examples:
'AssertLegacyTrait::assertLink()':
Rector: AssertLinkRector.php
PHPStan: 'Call to deprecated method assertLink() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->linkExists() instead.'
Examples:
'AssertLegacyTrait::assertLinkByHref()':
Rector: AssertLinkByHrefRector.php
PHPStan: 'Call to deprecated method assertLinkByHref() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->linkByHrefExists() instead.'
Examples:
'AssertLegacyTrait::assertNoCacheTag()':
Rector: AssertNoCacheTagRector.php
PHPStan: 'Call to deprecated method assertNoCacheTag() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseHeaderNotContains() instead.'
Examples:
'AssertLegacyTrait::assertNoLink()':
Rector: AssertNoLinkRector.php
PHPStan: 'Call to deprecated method assertNoLink() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->linkNotExists() instead.'
Examples:
'AssertLegacyTrait::assertNoLinkByHref()':
Rector: AssertNoLinkByHrefRector.php
PHPStan: 'Call to deprecated method assertNoLinkByHref() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->linkByHrefNotExists() instead.'
Examples:
'AssertLegacyTrait::assertNoPattern()':
Rector: AssertNoPatternRector.php
PHPStan: 'Call to deprecated method assertNoPattern() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotMatches() instead.'
Examples:
'AssertLegacyTrait::assertNoRaw()':
Rector: AssertNoRawRector.php
PHPStan: 'Call to deprecated method assertNoRaw() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseNotContains() instead.'
Examples:
'AssertLegacyTrait::assertNotEqual()':
Rector: AssertNotEqualRector.php
PHPStan: 'Call to deprecated method assertNotEqual() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertNotEquals() instead.'
Examples:
'AssertLegacyTrait::assertNoText()':
Rector: AssertNoTextRector.php
PHPStan: 'Call to deprecated method assertNoText() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use - $this->assertSession()->responseNotContains() for non-HTML responses, like XML or Json. - $this->assertSession()->pageTextNotContains() for HTML responses. Unlike the deprecated assertNoText(), the passed text should be HTML decoded, exactly as a human sees it in the browser.'
Examples:
'AssertLegacyTrait::assertNotIdentical()':
Rector: AssertNotIdenticalRector.php
PHPStan: 'Call to deprecated method assertNotIdentical() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. Use $this->assertNotSame() instead.'
Examples:
'AssertLegacyTrait::assertPattern()':
Rector: AssertPatternRector.php
PHPStan: 'Call to deprecated method assertPattern() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseMatches() instead.'
Examples:
'AssertLegacyTrait::assertRaw()':
Rector: AssertRawRector.php
PHPStan: 'Call to deprecated method assertRaw() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->responseContains() instead.'
Examples:
'AssertLegacyTrait::assertResponse()':
Rector: AssertResponseRector.php
PHPStan: 'Call to deprecated method assertResponse() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->statusCodeEquals() instead.'
Examples:
'AssertLegacyTrait::assertText()':
Rector: AssertTextRector.php
PHPStan: 'Call to deprecated method assertText() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use - $this->assertSession()->responseContains() for non-HTML responses, like XML or Json. - $this->assertSession()->pageTextContains() for HTML responses. Unlike the deprecated assertText(), the passed text should be HTML decoded, exactly as a human sees it in the browser.'
Examples:
'AssertLegacyTrait::assertTitle()':
Rector: AssertTitleRector.php
PHPStan: 'Call to deprecated method assertTitle() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->titleEquals() instead.'
Examples:
'AssertLegacyTrait::buildXPathQuery()':
Rector: BuildXPathQueryRector.php
PHPStan: 'Call to deprecated method buildXPathQuery() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->buildXPathQuery() instead.'
Examples:
'UiHelperTrait::drupalPostForm()':
Rector: UiHelperTraitDrupalPostFormRector.php
PHPStan: 'Call to deprecated method drupalPostForm() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:9.1.0 and is removed from drupal:10.0.0. Use $this->submitForm() instead.'
Examples:
'AssertLegacyTrait::assertField()':
Rector: AssertFieldRector.php
PHPStan: 'Call to deprecated method assertField() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->fieldExists() or $this->assertSession()->buttonExists() instead.'
Examples:
'AssertLegacyTrait::assertFieldById()':
Rector: AssertFieldByIdRector.php
PHPStan: 'Call to deprecated method assertFieldById() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->fieldExists() or $this->assertSession()->buttonExists() or $this->assertSession()->fieldValueEquals() instead.'
Examples:
'AssertLegacyTrait::assertFieldChecked()':
Rector: AssertFieldCheckedRector.php
PHPStan: 'Call to deprecated method assertFieldChecked() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->checkboxChecked() instead.'
Examples:
'AssertLegacyTrait::assertNoField()':
Rector: AssertNoFieldRector.php
PHPStan: 'Call to deprecated method assertNoField() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->fieldNotExists() or $this->assertSession()->buttonNotExists() instead.'
Examples:
'AssertLegacyTrait::assertNoFieldById()':
Rector: AssertNoFieldByIdRector.php
PHPStan: 'Call to deprecated method assertNoFieldById() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->fieldNotExists() or $this->assertSession()->buttonNotExists() or $this->assertSession()->fieldValueNotEquals() instead.'
Examples:
'AssertLegacyTrait::assertNoFieldByName()':
Rector: AssertNoFieldByNameRector.php
PHPStan: 'Call to deprecated method assertNoFieldByName() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->fieldNotExists() or $this->assertSession()->buttonNotExists() or $this->assertSession()->fieldValueNotEquals() instead.'
Examples:
'AssertLegacyTrait::assertNoFieldChecked()':
Rector: AssertNoFieldCheckedRector.php
PHPStan: 'Call to deprecated method assertNoFieldChecked() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->checkboxNotChecked() instead.'
Examples:
'AssertLegacyTrait::assertNoOption()':
Rector: AssertNoOptionRector.php
PHPStan: 'Call to deprecated method assertNoOption() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->optionNotExists() instead.'
Examples:
'AssertLegacyTrait::assertNoUniqueText()':
Rector: AssertNoUniqueTextRector.php
PHPStan: 'Call to deprecated method assertNoUniqueText() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Instead, use $this->getSession()->pageTextMatchesCount() if you know the cardinality in advance, or $this->getSession()->getPage()->getText() and substr_count().'
Examples:
'AssertLegacyTrait::assertOption()':
Rector: AssertOptionRector.php
PHPStan: 'Call to deprecated method assertOption() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->optionExists() instead.'
Examples:
'AssertLegacyTrait::assertOptionByText()':
Rector: AssertOptionByTextRector.php
PHPStan: 'Call to deprecated method assertOptionByText() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.4.0 and is removed from drupal:10.0.0. Use $this->assertSession()->optionExists() instead.'
Examples:
'AssertLegacyTrait::assertOptionSelected()':
Rector: AssertOptionSelectedRector.php
PHPStan: 'Call to deprecated method assertOptionSelected() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->optionExists() instead and check the "selected" attribute yourself.'
Examples:
'AssertLegacyTrait::assertUniqueText()':
Rector: AssertUniqueTextRector.php
PHPStan: 'Call to deprecated method assertUniqueText() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->pageTextContainsOnce() or $this->getSession()->pageTextMatchesCount() instead.'
Examples:
'AssertLegacyTrait::assertUrl()':
Rector: AssertUrlRector.php
PHPStan: 'Call to deprecated method assertUrl() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->assertSession()->addressEquals() instead.'
Examples:
'AssertLegacyTrait::constructFieldXpath()':
Rector: ConstructFieldXpathRector.php
PHPStan: 'Call to deprecated method constructFieldXpath() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.5.0 and is removed from drupal:10.0.0. Use $this->getSession()->getPage()->findField() instead.'
Examples:
'AssertLegacyTrait::getRawContent()':
Rector: GetRawContentRector.php
PHPStan: 'Call to deprecated method getRawContent() of class Drupal\Tests\BrowserTestBase. Deprecated in drupal:8.2.0 and is removed from drupal:10.0.0. Use $this->getSession()->getPage()->getContent() instead.'
Examples:
'path.alias_manager':
Rector: PathAliasManagerServiceNameRector.php
PHPStan: "Renames deprecated Drupal::services('path.alias_manager') argument"
Examples:
'path.alias_repository':
Rector: PathAliasRepositoryRector.php
PHPStan: "Renames deprecated Drupal::services('path.alias_repository') argument."
Examples:
'path.alias_whitelist':
Rector: PathAliasWhitelistServiceNameRector.php
PHPStan: "Renames deprecated Drupal::services('path.alias_whitelist') argument."
Examples:
'path_processor_alias':
Rector: PathProcessorAliasServiceNameRector.php
PHPStan: "Renames deprecated Drupal::services('path_processor_alias') argument."
Examples:
'path_subscriber':
Rector: PathSubscriberServiceNameRector.php
PHPStan: "Renames deprecated Drupal::services('path_subscriber') argument."
Examples:
'AssertLegacyTrait::pass()':
Rector: PassRector.php
PHPStan: "Call to deprecated method pass() of class Drupal\\Tests\\BrowserTestBase. Deprecated in drupal:8.0.0 and is removed from drupal:10.0.0. PHPUnit interrupts a test as soon as a test assertion fails, so there is usually no need to call this method. If a test's logic relies on this method, refactor the test."