- Status changed to Needs review
almost 2 years ago 5:32pm 20 January 2023 - Status changed to RTBC
almost 2 years ago 5:32pm 21 January 2023 - ๐บ๐ธUnited States smustgrave
Reviewing MR 3270
Removing credit for myself as I just rebased to make sure the tests passed.
The changes requested in #74 have been addressed
All new functions have a return typehint. - Status changed to Needs work
almost 2 years ago 12:40am 26 January 2023 - ๐บ๐ธUnited States xjm
Thanks for working on this issue! A few points:
-
+++ b/core/modules/image/tests/src/Functional/ImageAdminStylesTest.php @@ -316,10 +316,7 @@ public function testStyle() { - $style_name = strtolower($this->randomMachineName(10)); - $style_label = $this->randomString(); - $style = ImageStyle::create(['name' => $style_name, 'label' => $style_label]); - $style->save(); + $style = $this->createRandomStyle(); $style_path = 'admin/config/media/image-styles/manage/'; +++ b/core/modules/image/tests/src/Functional/ImageFieldTestBase.php @@ -89,6 +89,21 @@ public function previewNodeImage($image, $field_name, $type) { + public function createRandomStyle(): object { + $style_name = strtolower($this->randomMachineName()); + $style_label = $this->randomString(); + $values = ['name' => $style_name, 'label' => $style_label]; + $style = \Drupal::entityTypeManager()->getStorage('image_style')->create($values); + $style->save(); + return $style;
In general, Drupal has moved away from creating random fixture data, since it can cause all sorts of random failures and obscure what is actually being tested. We're better off having a fixed value (or data provider of values covering edgecases). I can see the value of having a helper method to save a new image style, but I think it should probably take the style name and label as parameters rather than being random.
Also, we should almost never typehint a generic
object
. Surely there's an interface for image styles? -
+++ b/core/modules/image/tests/src/Functional/ImageAdminUiTest.php @@ -0,0 +1,68 @@ + * Tests the administrative user interface.
That would be a really big test...
I think this is supposed to be "Tests the image style administration UI" or something along those lines.
-
+++ b/core/modules/image/tests/src/Functional/ImageAdminUiTest.php @@ -0,0 +1,68 @@ + * Test if the help text is available on the edit effect form. ... + * Test if the help text is available on the edit effect form.
Nit: "Tests that..."
-
+++ b/core/modules/image/tests/src/Functional/ImageAdminUiTest.php @@ -0,0 +1,68 @@ + $this->submitForm($edit, t('Add effect'));
I don't think we need the use of
t()
here.
-
- ๐บ๐ธUnited States xjm
I just realized this issue has both patches and an MR, so I was reviewing the wrong thing. Most of my feedback still applies, though.
Hiding the patches, but please apply the above feedback to the MR. Thanks!
- Status changed to Needs review
almost 2 years ago 5:17pm 27 January 2023 - Status changed to RTBC
almost 2 years ago 8:39pm 27 January 2023 - ๐บ๐ธUnited States smustgrave
Points from #81 have been addressed.
- Status changed to Needs work
almost 2 years ago 12:30am 8 February 2023 - Issue was unassigned.
- ๐ณ๐ฟNew Zealand quietone
It has been two years since @dhirendra.mishra worked on this, so un-asssinging.
- Status changed to Needs review
almost 2 years ago 7:55pm 9 February 2023 - Status changed to Needs work
almost 2 years ago 8:28pm 9 February 2023 The Needs Review Queue Bot โ tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.
Consult the Drupal Contributor Guide โ to find step-by-step guides for working with issues.
- First commit to issue fork.
- Status changed to Needs review
almost 2 years ago 2:38pm 10 February 2023 - Status changed to Needs work
almost 2 years ago 8:09pm 16 February 2023 - ๐บ๐ธUnited States smustgrave
Still appears to have one open thread.
- Status changed to Needs review
almost 2 years ago 11:03pm 16 February 2023 - Status changed to Needs work
over 1 year ago 3:41pm 28 February 2023 - First commit to issue fork.
- Status changed to Needs review
over 1 year ago 6:42am 1 March 2023 - Status changed to Needs work
over 1 year ago 7:18am 1 March 2023 - ๐ฎ๐ณIndia sahil.goyal
sahil.goyal โ made their first commit to this issueโs fork.
- last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 29,203 pass - Status changed to Needs review
over 1 year ago 6:18am 17 April 2023 - Status changed to Needs work
over 1 year ago 2:31pm 19 April 2023 - ๐บ๐ธUnited States smustgrave
I think this could probably be a kernel test no? Does it need a full bootstrap for testing a message? If it remains a functional still don't think it needs to be it's own.
- First commit to issue fork.
41:32 41:06 Running- ๐ฆ๐บAustralia acbramley
Made some minor updates and left a few comments. I think this is fine as a functional test as the issue is about help text appearing on specific routes.
Keeping as NW because I feel like there are some changes that are out of scope here.