Commit 3cf0815a authored by catch's avatar catch

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

parent dad8d64e
<?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]);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment