Commit 5c3783b3 authored by Damien McKenna's avatar Damien McKenna Committed by Damien McKenna
Browse files

Issue #3123582 by DamienMcKenna: Remove Devel dependency for D9.

parent 3c00fd23
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ Metatag 8.x-1.x-dev, xxxx-xx-xx
-------------------------------
#3123520 by DamienMcKenna, phenaproxima: Remove Schema.org Metatag dependency
  for D9.
#3123582 by DamienMcKenna: Remove Devel dependency for D9.


Metatag 8.x-1.12, 2020-03-30
+0 −1
Original line number Diff line number Diff line
@@ -26,7 +26,6 @@
    "drupal/token": "^1.0"
  },
  "require-dev": {
    "drupal/devel": "^2.0",
    "drupal/redirect": "^1.0",
    "drupal/restui": "^1.0",
    "drupal/page_manager": "^4.0"
+0 −1
Original line number Diff line number Diff line
@@ -9,6 +9,5 @@ dependencies:
  - drupal:field
  - token:token
test_dependencies:
  - devel:devel
  - redirect:redirect
  - restui:restui
+0 −36
Original line number Diff line number Diff line
<?php

namespace Drupal\Tests\metatag\Functional;

/**
 * Verify that enabling WebProfiler won't cause the site to blow up.
 *
 * @group metatag
 */
class EnsureDevelWebProfilerWorks extends EnsureDevelWorks {

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    // Modules for core functionality.
    'node',
    'field',
    'field_ui',
    'user',

    // Contrib dependencies.
    'token',

    // This module.
    'metatag',

    // Use the custom route to verify the site works.
    'metatag_test_custom_route',

    // The modules to test.
    'devel',
    'webprofiler',
  ];

}
+0 −58
Original line number Diff line number Diff line
<?php

namespace Drupal\Tests\metatag\Functional;

use Drupal\Tests\BrowserTestBase;

/**
 * Verify that enabling Devel won't cause the site to blow up.
 *
 * @group metatag
 */
class EnsureDevelWorks extends BrowserTestBase {

  // Contains helper methods.
  use MetatagHelperTrait;

  /**
   * {@inheritdoc}
   */
  public static $modules = [
    // Modules for core functionality.
    'node',
    'field',
    'field_ui',
    'user',

    // Contrib dependencies.
    'token',

    // This module.
    'metatag',

    // Use the custom route to verify the site works.
    'metatag_test_custom_route',

    // The modules to test.
    'devel',
  ];

  /**
   * Load the custom route, make sure something is output.
   */
  public function testCustomRoute() {
    $this->drupalGet('metatag_test_custom_route');
    $this->assertResponse(200);
    $this->assertText('Hello world!');
  }

  /**
   * Make sure that the system still works when some example content exists.
   */
  public function testNode() {
    $node = $this->createContentTypeNode();
    $this->drupalGet($node->toUrl());
    $this->assertResponse(200);
  }

}