Commit 09ee23b8 authored by Gábor Hojtsy's avatar Gábor Hojtsy

Issue #2889352 by naveenvalecha, jibran, dawehner, Lendude: Convert...

Issue #2889352 by naveenvalecha, jibran, dawehner, Lendude: Convert ContactFieldsTest & ContactLinkTest web tests to browser tests for contact module
parent cf072529
<?php
namespace Drupal\contact\Tests\Views;
namespace Drupal\Tests\contact\Functional\Views;
use Drupal\field\Entity\FieldConfig;
use Drupal\views\Tests\ViewTestBase;
use Drupal\Tests\views\Functional\ViewTestBase;
use Drupal\field\Entity\FieldStorageConfig;
use Drupal\contact\Entity\ContactForm;
......@@ -28,8 +28,8 @@ class ContactFieldsTest extends ViewTestBase {
*/
protected $fieldStorage;
protected function setUp() {
parent::setUp();
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
$this->fieldStorage = FieldStorageConfig::create([
'field_name' => strtolower($this->randomMachineName()),
......
<?php
namespace Drupal\contact\Tests\Views;
namespace Drupal\Tests\contact\Functional\Views;
use Drupal\Core\Cache\Cache;
use Drupal\views\Tests\ViewTestBase;
use Drupal\Tests\views\Functional\ViewTestBase;
use Drupal\views\Tests\ViewTestData;
use Drupal\user\Entity\User;
......@@ -39,8 +39,8 @@ class ContactLinkTest extends ViewTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
protected function setUp($import_test_views = TRUE) {
parent::setUp($import_test_views);
ViewTestData::createTestViews(get_class($this), ['contact_test_views']);
......
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