Skip to content
Snippets Groups Projects
Commit 3cf0815a authored by catch's avatar catch
Browse files

Issue #2930072 by vaplas, Lendude: Module: Convert system functional tests to phpunit

parent dad8d64e
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
<?php
namespace Drupal\system\Tests\Module;
namespace Drupal\Tests\system\Functional\Module;
use Drupal\Component\Utility\Unicode;
......
<?php
namespace Drupal\system\Tests\Module;
namespace Drupal\Tests\system\Functional\Module;
/**
* Attempts enabling a module that fails hook_requirements('install').
......
<?php
namespace Drupal\system\Tests\Module;
namespace Drupal\Tests\system\Functional\Module;
use Drupal\Component\Render\FormattableMarkup;
use Drupal\Core\Logger\RfcLogLevel;
......
<?php
namespace Drupal\system\Tests\Module;
namespace Drupal\Tests\system\Functional\Module;
use Drupal\Component\Utility\Unicode;
use Drupal\simpletest\WebTestBase;
use Drupal\taxonomy\Tests\TaxonomyTestTrait;
use Drupal\Tests\BrowserTestBase;
use Drupal\Tests\taxonomy\Functional\TaxonomyTestTrait;
/**
* Tests that modules which provide entity types can be uninstalled.
*
* @group Module
*/
class PrepareUninstallTest extends WebTestBase {
class PrepareUninstallTest extends BrowserTestBase {
use TaxonomyTestTrait;
......
<?php
namespace Drupal\system\Tests\Module;
namespace Drupal\Tests\system\Functional\Module;
/**
* Attempt disabling of required modules.
......
<?php
namespace Drupal\system\Tests\Module;
namespace Drupal\Tests\system\Functional\Module;
/**
* Tests module version dependencies.
......@@ -49,7 +49,7 @@ public function testModuleVersions() {
for ($i = 0; $i < $n; $i++) {
$this->drupalGet('admin/modules');
$checkbox = $this->xpath('//input[@id="edit-modules-module-test-enable"]');
$this->assertEqual(!empty($checkbox[0]['disabled']), $i % 2, $dependencies[$i]);
$this->assertEqual(!empty($checkbox[0]->getAttribute('disabled')), $i % 2, $dependencies[$i]);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment