public function UpgradeStatusUiTest::testUiBeforeScan in Upgrade Status 8.3
Same name and namespace in other branches
- 8 tests/src/Functional/UpgradeStatusUiTest.php \Drupal\Tests\upgrade_status\Functional\UpgradeStatusUiTest::testUiBeforeScan()
- 8.2 tests/src/Functional/UpgradeStatusUiTest.php \Drupal\Tests\upgrade_status\Functional\UpgradeStatusUiTest::testUiBeforeScan()
Test the user interface before running a scan.
File
- tests/
src/ Functional/ UpgradeStatusUiTest.php, line 26
Class
- UpgradeStatusUiTest
- Tests the UI before and after running scans.
Namespace
Drupal\Tests\upgrade_status\FunctionalCode
public function testUiBeforeScan() {
$this
->drupalGet(Url::fromRoute('upgrade_status.report'));
$assert_session = $this
->assertSession();
$assert_session
->buttonExists('Scan selected');
$assert_session
->buttonExists('Export selected as HTML');
// Scan result for every project should be 'N/A'.
$status = $this
->getSession()
->getPage()
->findAll('css', 'td.scan-result');
$this
->assertNotEmpty($status);
foreach ($status as $project_status) {
$this
->assertSame('N/A', $project_status
->getHtml());
}
}