Problem/Motivation
Follow up for #3439835: Fix Field UI tests that rely on UID1's super user behavior.
Drupal\Tests\field_ui\Functional\FieldUIRouteTest has two test methods. Each test method spins up it's own new Drupal instance, which causes some extra overhead. The testAdminRoute() performs a very basic test that could easily be done at the beginning of testFieldUIRoutes() before logging in with an account so that the test uses less time/resources.
Steps to reproduce
Not applicable.
Proposed resolution
Merge both test methods. Move the contents of testAdminRoute() to the beginning of testFieldUIRoutes() before logging in with an account.
Remaining tasks
- Create MR.
- Review.
- Commit.
User interface changes
None.
API changes
None.
Data model changes
None.
Release notes snippet
Not needed.
Issue fork drupal-3460654
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3460654-merge-test-methods
changes, plain diff MR !8958
Comments
Comment #2
andypostComment #3
feyp commentedComment #4
quietone commentedComment #5
feyp commented@nod_ just committed the parent issue so this is now ready for someone to work on. Setting to Active.
Comment #8
pooja_sharma commentedMoved the contents of testAdminRoute() to the beginning of testFieldUIRoutes() before logging in with an account for the optimise usage of resources & to improves test performance.
Also observed while testing on local resource usage goes from Time 00:17.865, Memory: 4.00 MB to Time: 00:09.251, Memory: 4.00 MB of test.
Please review , moving NR
Comment #9
catchLooks great and the pipeline is green.
Comment #10
catchWrong status.
Comment #12
nod_Committed and pushed 302ee049e4 to 11.x and b3667201d5 to 11.0.x and 54757a4314 to 10.4.x and cc1c5e909b to 10.3.x. Thanks!
Comment #16
nod_