Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Write test case for the UI of creation of block visibility groups.
Comment | File | Size | Author |
---|---|---|---|
#17 | interdiff-17.patch | 703 bytes | joshi.rohit100 |
#17 | 2574629-17.patch | 5.15 KB | joshi.rohit100 |
#16 | test_for_visibility-2574629-16.patch | 4.9 KB | tedbow |
#15 | test_for_visibility-2574629-15.patch | 7.61 KB | tedbow |
#13 | 2574629-13.patch | 4.23 KB | joshi.rohit100 |
|
Comments
Comment #2
joshi.rohit100here we go.
Comment #3
joshi.rohit100re-uploading
Comment #5
joshi.rohit100mis-named test directory name ):
Comment #7
tedbowComment #8
tedbowI turned off "Continuous integration tests" because it looks like it fails without a unit test. You might need to resubmit.
Comment #9
tedbowNot sure if there is problem with my set up but when I try to run the tests locally I get:
I am using core 8.0.0-beta15
Comment #11
joshi.rohit100Comment #12
joshi.rohit100somehow forgot to mention @group ):
Comment #13
joshi.rohit100One problem here it is showing that we have ConditionsSetFormTrait trait which is using StringTranslationTrait and also for example, we are extending FormBase class by BlockVisibilityGroupForm which also using that string translation trait. So there is collision in the $this->t() in some classes which are using this new trait and extending core classes which already have this transaltion trait.
But I think, it is not related with test, so here we go....
Comment #15
tedbowI have attached a patch that fixes the trait problem with ConditionsSetFormTrait that cause a drupalci testing error.
Comment #16
tedbowAttached patch that remove translation function also does use StringTranslationTrait
So only works because all classes that use this trait also use StringTranslationTrait or least has t function.
The previous patch relies on method_exists which probably is wasteful.
Comment #17
joshi.rohit100Comment #20
joshi.rohit100Oops! wrong extension for interdiff
Comment #22
tedbow@joshi.rohit100 thanks so much for the patch. Sorry it took me so long to get back to this. Test patches are especially appreciated because they make development so much easier.
Comment #23
tedbowI have create a meta issue for tests. #2608378: [Meta] Create Web Tests