Patch wrong or outdated for AssertSession
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3332090. -->
Reported by: [fkelly12054@gmail.com](https://www.drupal.org/user/2412630)
>>>
<h2>9.5.1</h2>
<h2>Drupal Rector 0.12.0</h2>
<h2>Patch is wrong, probably just outdated / Motivation</h2>
<p>In patches being sent to the Juicebox contrib module Rector is recommending a patch as per:</p>
<p>- $this->assertResponse(200, 'Control request of XML was successful.');<br>
+ $this->assertSession()->statusCodeEquals(200, 'Control request of XML was successful.');</p>
<p>A sample can be found at:</p>
<p><a href="https://www.drupal.org/project/juicebox/issues/3288160">https://www.drupal.org/project/juicebox/issues/3288160</a></p>
<p>I am fairly sure that assertSession() now takes just one parameter and the patch should just show;</p>
<p>" $this->assertSession()->statusCodeEquals(200);</p>
<p>I may, of course, be mistaken or more likely the Project Update Bot is using an outdated Rector version. </p>
issue