fa392f2681ce57a8515f9b78d0565bacffe649eb
[yaffs-website] / web / modules / contrib / metatag / tests / src / Functional / EnsureDevelWorks.php
1 <?php
2
3 namespace Drupal\Tests\metatag\Functional;
4
5 use Drupal\Tests\BrowserTestBase;
6
7 /**
8  * Verify that enabling Devel don't cause the site to blow up.
9  *
10  * @group metatag
11  */
12 class EnsureDevelWorks extends BrowserTestBase {
13
14   // Contains helper methods.
15   use MetatagHelperTrait;
16
17   /**
18    * {@inheritdoc}
19    */
20   public static $modules = [
21     // Modules for core functionality.
22     'node',
23     'field',
24     'field_ui',
25     'user',
26
27     // Contrib dependencies.
28     'token',
29
30     // This module.
31     'metatag',
32
33     // Use the custom route to verify the site works.
34     'metatag_test_custom_route',
35
36     // The modules to test.
37     'devel',
38   ];
39
40   /**
41    * Load the custom route, make sure something is output.
42    */
43   public function testCustomRoute() {
44     $this->drupalGet('metatag_test_custom_route');
45     $this->assertResponse(200);
46     $this->assertText('Hello world!');
47   }
48
49   /**
50    * Make sure that the system still works when some example content exists.
51    */
52   public function testNode() {
53     $node = $this->createContentTypeNode();
54     $this->drupalGet($node->toUrl());
55     $this->assertResponse(200);
56   }
57
58 }