Comments

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new4.68 KB

Added a test plugin and did some checking.

Status: Needs review » Needs work

The last submitted patch, views-1754234-1.patch, failed testing.

aspilicious’s picture

Status: Needs work » Needs review
StatusFileSize
new4.67 KB

I think there was a filename conflict with the previous patch

dawehner’s picture

Status: Needs review » Needs work
+++ b/lib/Drupal/views/Tests/UI/ArgumentValidatorTest.phpundefined
@@ -0,0 +1,30 @@
+  public function testArgumentValidatorUI() {
+

We don't test something yet, so this needs work.

xjm’s picture

Project: Views (for Drupal 7) » Drupal core
Version: 8.x-3.x-dev » 8.x-dev
Component: Code » views.module
dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new7.48 KB

Wrote an actual test for the UI, so we have a basic test coverage for that specific area of the code.

dawehner’s picture

StatusFileSize
new7.57 KB

Updated against recent changes of views tests and fixed some codestyle issues.

Status: Needs review » Needs work

The last submitted patch, drupal-1754234-7.patch, failed testing.

damiankloip’s picture

+++ b/core/modules/views/lib/Drupal/views/Tests/Plugin/ArgumentValidatorTest.phpundefined
@@ -29,6 +31,12 @@ public static function getInfo() {
+    $this->enableViewsTestModule();

This is a method on ViewTestBase and not ViewUnitTestBase.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new7.77 KB

Let's fix those tests.

djroshi’s picture

StatusFileSize
new5.18 KB

Apparently views.view.test_argument.yml was missing an id attribute, causing a fatal error in testArgumentValidatorUI()

dawehner’s picture

It feels really wrong that you removed some test code, which got added in #10 or before. Is there a specific reason for that?

djroshi’s picture

StatusFileSize
new7.76 KB

I must have rolled the patch incorrectly, the only intended change (vs #10) is this >

+human_name: ''
+id: test_argument
+tag: ''
dawehner’s picture

+++ b/core/modules/views/tests/views_test_config/test_views/views.view.test_argument.ymlundefined
@@ -0,0 +1,40 @@
+      fields:
+        name:
...
+          table: views_test_data
+      arguments:
+        id:

Handlers now use "plugin_id", see views.view.test_view.yml

Did you ever used interdiffs? It's a great tool for collaborators to post changes on drupal.org, so these small changes are reviewable as well.

djroshi’s picture

StatusFileSize
new1.05 KB
new7.82 KB

Hopefully I got this right?

dawehner’s picture

I would love to RTBC it, though I wrote most of the code, so i'm stepping back.

A really tiny small """problem""".

+++ b/core/modules/views/tests/views_test_data/lib/Drupal/views_test_data/Plugin/views/argument_validator/ArgumentValidatorTest.phpundefined
@@ -0,0 +1,55 @@
+ * Contains Drupal\views\Plugin\views\argument_validator\ArgumentValidatorTest.

Nitpick :) Missing \ before Drupal.

dawehner’s picture

StatusFileSize
new1.73 KB
new7.56 KB

Just another rerole.

tim.plunkett’s picture

Status: Needs review » Reviewed & tested by the community

Reroll looks good, thanks @dawehner!

Status: Reviewed & tested by the community » Needs work
Issue tags: -VDC

The last submitted patch, views_argument_validator_tests-1754234-17.patch, failed testing.

tim.plunkett’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, views_argument_validator_tests-1754234-17.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work
Issue tags: +VDC

The last submitted patch, views_argument_validator_tests-1754234-17.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new490 bytes
new7.6 KB

Let's fix the problem.

Status: Needs review » Needs work

The last submitted patch, drupal-1754234-24.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review
StatusFileSize
new850 bytes
new7.61 KB

The last submitted patch, vdc-1754234-26.patch, failed testing.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.