Follow-up to #2742995: Convert web tests to browser tests for contact module
See #2735005: Convert all Simpletest web tests to BrowserTestBase (or UnitTestBase/KernelTestBase)
naveenvalecha created an issue. See original summary.
Here we go
//Naveen
+++ b/core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php @@ -39,10 +39,12 @@ class ContactLinkTest extends ViewTestBase { + if ($import_test_views) {
Why do we need this?
@jibran, we don't need this :) Removed this. Thanks for your review.
Thanks!
Maybe a child class want's to defer the importing to do some questions, but yeah I guess in this case we don't need it.
+++ b/core/modules/contact/tests/src/Functional/Views/ContactFieldsTest.php @@ -28,8 +28,8 @@ class ContactFieldsTest extends ViewTestBase { + protected function setUp($import_test_views = TRUE) { + parent::setUp($import_test_views); +++ b/core/modules/contact/tests/src/Functional/Views/ContactLinkTest.php @@ -39,8 +39,8 @@ class ContactLinkTest extends ViewTestBase { + protected function setUp($import_test_views = TRUE) { + parent::setUp($import_test_views);
Hm, we did not do this before, why do we need it now?
To fix the warning b/c ViewTestBase::setup requires the argument $import_test_views
Back to N/R //Naveen
The child class setUp() needs to match the parent, so the change is correct.
Issue #2889352 by naveenvalecha, jibran, dawehner, Lendude: Convert...
Makes sense. Thanks for setting me straight :) Committed :)
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #2
naveenvalechaHere we go
//Naveen
Comment #3
jibranWhy do we need this?
Comment #4
naveenvalecha@jibran,
we don't need this :) Removed this. Thanks for your review.
//Naveen
Comment #5
jibranThanks!
Comment #6
dawehnerMaybe a child class want's to defer the importing to do some questions, but yeah I guess in this case we don't need it.
Comment #7
gábor hojtsyHm, we did not do this before, why do we need it now?
Comment #8
naveenvalechaTo fix the warning b/c ViewTestBase::setup requires the argument $import_test_views
Back to N/R
//Naveen
Comment #9
lendudeThe child class setUp() needs to match the parent, so the change is correct.
Comment #12
gábor hojtsyMakes sense. Thanks for setting me straight :) Committed :)
Comment #13
gábor hojtsy