public function UpgradeRectorUiTest::testUiBeforeScan in Upgrade Rector 8
Test the user interface before running rector.
File
- tests/
src/ Functional/ UpgradeRectorUiTest.php, line 39
Class
- UpgradeRectorUiTest
- Tests the UI before and after running scans.
Namespace
Drupal\Tests\upgrade_rector\FunctionalCode
public function testUiBeforeScan() {
$this
->drupalGet(Url::fromRoute('upgrade_rector.run'));
$assert_session = $this
->assertSession();
$assert_session
->buttonExists('Run rector');
$this
->assertCount(2, $this
->getSession()
->getPage()
->findAll('css', 'details'));
}