security update devel, metatag
This commit is contained in:
+3
-3
@@ -5,8 +5,8 @@ package: Testing
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-10-05
|
||||
version: '8.x-1.2'
|
||||
# Information added by Drupal.org packaging script on 2019-01-29
|
||||
version: '8.x-2.0'
|
||||
core: '8.x'
|
||||
project: 'devel'
|
||||
datestamp: 1507197848
|
||||
datestamp: 1548799386
|
||||
|
||||
+6
-6
@@ -5,12 +5,12 @@ package: Testing
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
dependencies:
|
||||
- field
|
||||
- text
|
||||
- entity_test
|
||||
- drupal:field
|
||||
- drupal:text
|
||||
- drupal:entity_test
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-10-05
|
||||
version: '8.x-1.2'
|
||||
# Information added by Drupal.org packaging script on 2019-01-29
|
||||
version: '8.x-2.0'
|
||||
core: '8.x'
|
||||
project: 'devel'
|
||||
datestamp: 1507197848
|
||||
datestamp: 1548799386
|
||||
|
||||
@@ -5,8 +5,8 @@ package: Testing
|
||||
# version: VERSION
|
||||
# core: 8.x
|
||||
|
||||
# Information added by Drupal.org packaging script on 2017-10-05
|
||||
version: '8.x-1.2'
|
||||
# Information added by Drupal.org packaging script on 2019-01-29
|
||||
version: '8.x-2.0'
|
||||
core: '8.x'
|
||||
project: 'devel'
|
||||
datestamp: 1507197848
|
||||
datestamp: 1548799386
|
||||
|
||||
@@ -50,7 +50,7 @@ class DevelDumperTest extends BrowserTestBase {
|
||||
'chromephp',
|
||||
'var_dumper',
|
||||
];
|
||||
$available_dumpers = ['default', 'drupal_variable'];
|
||||
$available_dumpers = ['default', 'drupal_variable', 'var_dumper'];
|
||||
|
||||
foreach ($dumpers as $dumper) {
|
||||
$this->assertFieldByXPath('//input[@type="radio" and @name="dumper"]', $dumper);
|
||||
|
||||
@@ -40,7 +40,6 @@ class DevelToolbarTest extends BrowserTestBase {
|
||||
'devel.cache_clear',
|
||||
'devel.container_info.service',
|
||||
'devel.admin_settings_link',
|
||||
'devel.execute_php',
|
||||
'devel.menu_rebuild',
|
||||
'devel.reinstall',
|
||||
'devel.route_info',
|
||||
@@ -59,7 +58,6 @@ class DevelToolbarTest extends BrowserTestBase {
|
||||
$this->develUser = $this->drupalCreateUser([
|
||||
'administer site configuration',
|
||||
'access devel information',
|
||||
'execute php code',
|
||||
'access toolbar',
|
||||
]);
|
||||
$this->toolbarUser = $this->drupalCreateUser([
|
||||
|
||||
@@ -69,7 +69,7 @@ class DevelQueryDebugTest extends KernelTestBase {
|
||||
// permissions. We expect only one status message containing the SQL for
|
||||
// the debugged query.
|
||||
\Drupal::currentUser()->setAccount($this->develUser);
|
||||
$expected_message = "SELECT u.uid AS uid\nFROM \n{users} u";
|
||||
$expected_message = "SELECT u.uid AS uid\nFROM\n{users} u";
|
||||
|
||||
$query = \Drupal::database()->select('users', 'u');
|
||||
$query->fields('u', ['uid']);
|
||||
@@ -102,7 +102,7 @@ class DevelQueryDebugTest extends KernelTestBase {
|
||||
// permissions. We expect only one status message containing the SQL for
|
||||
// the debugged entity query.
|
||||
\Drupal::currentUser()->setAccount($this->develUser);
|
||||
$expected_message = "SELECT base_table.uid AS uid, base_table.uid AS base_table_uid\nFROM \n{users} base_table";
|
||||
$expected_message = "SELECT base_table.uid AS uid, base_table.uid AS base_table_uid\nFROM\n{users} base_table";
|
||||
|
||||
$query = \Drupal::entityQuery('user');
|
||||
$query->addTag('debug');
|
||||
|
||||
@@ -70,7 +70,7 @@ class DevelTwigExtensionTest extends KernelTestBase {
|
||||
*/
|
||||
public function testTwigExtensionLoaded() {
|
||||
$twig_service = \Drupal::service('twig');
|
||||
$extension = $twig_service->getExtension('devel_debug');
|
||||
$extension = $twig_service->getExtension(Debug::class);
|
||||
$this->assertEquals(get_class($extension), Debug::class, 'Debug Extension loaded successfully.');
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Drupal\Tests\devel\Unish;
|
||||
|
||||
use Unish\CommandUnishTestCase;
|
||||
|
||||
/**
|
||||
* @group devel
|
||||
* @group commands
|
||||
*/
|
||||
class DevelDrushTest extends CommandUnishTestCase {
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected function setUp() {
|
||||
$this->setUpDrupal(1, true);
|
||||
$this->drush('pm:enable', ['devel']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Test devel:services command.
|
||||
*/
|
||||
public function testServices() {
|
||||
$this->drush('devel:services');
|
||||
$output = $this->getOutput();
|
||||
$this->assertContains('account_switcher', $output);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
Running Unish Tests
|
||||
===================
|
||||
|
||||
Follow instructions provided by [Drush test README.md](https://github.com/drush-ops/drush/blob/master/tests/README.md) in order to test Unish test cases provided by contrib modules.
|
||||
|
||||
See: https://github.com/drush-ops/drush/blob/master/tests/README.md
|
||||
Reference in New Issue
Block a user