Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / migrate_plus / tests / src / Functional / LoadTest.php
1 <?php
2
3 namespace Drupal\Tests\migrate_plus\Functional;
4
5 use Drupal\Core\Url;
6 use Drupal\Tests\BrowserTestBase;
7
8 /**
9  * Simple test to ensure that main page loads with module enabled.
10  *
11  * @group migrate_plus
12  */
13 class LoadTest extends BrowserTestBase {
14
15   /**
16    * Modules to enable.
17    *
18    * @var array
19    */
20   public static $modules = [
21     'migrate_plus',
22     'migrate_example',
23     'migrate_example_advanced',
24   ];
25
26   /**
27    * A user with permission to administer site configuration.
28    *
29    * @var \Drupal\user\UserInterface
30    */
31   protected $user;
32
33   /**
34    * {@inheritdoc}
35    */
36   protected function setUp() {
37     parent::setUp();
38     $this->user = $this->drupalCreateUser(['administer site configuration']);
39     $this->drupalLogin($this->user);
40   }
41
42   /**
43    * Tests that the home page loads with a 200 response.
44    */
45   public function testLoad() {
46     $this->drupalGet(Url::fromRoute('<front>'));
47     $this->assertSession()->statusCodeEquals(200);
48   }
49
50 }