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.
Comment | File | Size | Author |
---|---|---|---|
#45 | 2771663-44.patch | 3.44 KB | naveenvalecha |
| |||
#44 | 2771663-43.patch | 4.33 KB | naveenvalecha |
Comments
Comment #2
joyceg CreditAttribution: joyceg commentedAdded a test to check the accessibility of the form.
Comment #3
naveenvalechaFile name should be better "SearchConfigFormTest.php"
This is not needed anymore. Remove @file tag.
group is wrong. it should be "search_config"
Add description about the function.
Comment #4
joyceg CreditAttribution: joyceg commentedComment #5
joyceg CreditAttribution: joyceg commentedComment #6
joyceg CreditAttribution: joyceg commentedsorry wrong patch attached.
Comment #7
joyceg CreditAttribution: joyceg commentedComment #8
joyceg CreditAttribution: joyceg commentedComment #9
joyceg CreditAttribution: joyceg commentedComment #10
joyceg CreditAttribution: joyceg commentedCan you please review patch #8?
Comment #11
joyceg CreditAttribution: joyceg commentedIf you are free, can you have a look at the patch #8 and suggest changes?
Comment #12
joyceg CreditAttribution: joyceg commentedComment #13
joyceg CreditAttribution: joyceg commentedComment #14
neetu morwani CreditAttribution: neetu morwani as a volunteer and at Acquia commented@joyce Can we also include the test for the SettingsForm if it is being submitted on entering the values or not.
Comment #15
neetu morwani CreditAttribution: neetu morwani as a volunteer and at Acquia commentedComment #16
joyceg CreditAttribution: joyceg commentedComment #17
naveenvalechaNot needed. Remove it.
Add one line description about the test file what it does
Define the setup function and create a admin user.
Add a newline before it.
Not needed.
Move all this to a single method testSearchConfigForm
Move this to a single method testSearchConfigForm
Extra spaces.
Merge this method as well in another method.
Add some default values.
Comment #18
naveenvalechaComment #19
joyceg CreditAttribution: joyceg commentedComment #20
naveenvalechaadd @docblock to this property.
Add a new line before the function.
Why these permissions. Search configuration form only needs this permission to access it "admin node search exclusions"
Move this to above funtion 'testSearchConfigForm'
Comment #21
joyceg CreditAttribution: joyceg commentedComment #22
naveenvalechaThis should be above the public $admin
rename variable to $adminUser
The description of the function name needs updation.
Why empty values
Check here using $this->assertText('The configuration has been saved')
that the page has been saved or not ?
Comment #23
joyceg CreditAttribution: joyceg commentedComment #24
naveenvalechaAdd onel ine doc to
/**
* Modules to enable.
*
* @var array
*/
/**
* An admin user with administrative permissions for Search Config.
*
* @var \Drupal\user\UserInterface
*/
/**
* {@inheritdoc}
*/
This would be the assertText
$this->assertText('The configuration options have been saved.');
Comment #25
joyceg CreditAttribution: joyceg commentedComment #26
naveenvalechaRemove this line.
Comment #27
naveenvalechaAddressed above and fixed coding standards in whole file.
Enabled drupal ci for testing .Giving it a run on it.
Comment #28
naveenvalechaThe attached patch will also fail b/c there's improper usage of the config api, that would be fixed and after that the tests will pass. Re-uploading the patch after cleanup.
Comment #29
naveenvalechaAssigning to Joy to find the improper usage of config api and then fix it.
Comment #32
naveenvalechaMore cleanup
Comment #34
naveenvalechaComment #36
joyceg CreditAttribution: joyceg commentedThe patches were not getting applied.
Comment #37
naveenvalechahave you done the git pull before applying
Comment #38
joyceg CreditAttribution: joyceg commentedYes, the git pull was done.
Comment #39
naveenvalechaMore cleanup.
Comment #40
naveenvalechaGo to the https://simplytest.me/project/search_config/8.x-1.x
and in the patch section give the link of the page https://www.drupal.org/files/issues/2771663-36.patch
It will apply and then setup the site for you.
you have some issues at local, resolve it and then apply the patch
Comment #42
joyceg CreditAttribution: joyceg commentedYes, the patch is working fine. Some issues initially in my local. It has been resolved.
Comment #43
naveenvalechaSplitting some of the related changes to sub issues.
Comment #44
naveenvalechaDid the cleanup in the sub issues.
#2788443: Move schema defination to search_config.schema.yml
#2788445: Remove search_config.node schema from the module and let details elements closed by default
Let's stick the scope this issue limited as it is now
Comment #45
naveenvalecha