My first @dataProvider test :) Easily halves the size of the test class.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dawehner’s picture

+++ b/core/modules/migrate/tests/Drupal/migrate/Tests/process/DedupeEntityTest.php
@@ -44,65 +44,38 @@ public function setUp() {
   /**
...
+   * @dataProvider provider
...
+  public function test($count, $postfix = '') {

Let's use testDedupe and providerTestDedupe as well as provide some basic documentation for the two methods.

chx’s picture

Status: Active » Needs review
chx’s picture

FileSize
1.02 KB
3.62 KB

Status: Needs review » Needs work

The last submitted patch, 3: 2152355_3.patch, failed testing.

dawehner’s picture

Status: Needs work » Needs review

3: 2152355_3.patch queued for re-testing.

Status: Needs review » Needs work

The last submitted patch, 3: 2152355_3.patch, failed testing.

The last submitted patch, 3: 2152355_3.patch, failed testing.

chx’s picture

Status: Needs work » Needs review
FileSize
3.62 KB

Status: Needs review » Needs work

The last submitted patch, 8: 2152355_3.patch, failed testing.

chx’s picture

Status: Needs work » Needs review
FileSize
3.63 KB

The phpunit error reporting could use some love.

chx’s picture

FileSize
668 bytes
3.92 KB
dawehner’s picture

Status: Needs review » Reviewed & tested by the community

This looks fine!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Nice clean-up!

Committed and pushed to 8.x. Thanks!

Status: Fixed » Closed (fixed)

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