Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Xano’s picture

jian he’s picture

Status: Active » Needs review
FileSize
6.31 KB

This is for drupal 8, so don't mind on drupal 7 auto testing.

Status: Needs review » Needs work

The last submitted patch, 2: 2142579-drupal8-2.patch, failed testing.

jian he’s picture

FileSize
1.61 KB
7.72 KB

fix payment_ubercart_uc_payment_method.

Xano’s picture

Title: Drupal 8 version » [META] Drupal 8 version

Let's keep this issue as a meta issue and create sub-issues for porting specific parts of the module. Note that all code must have full test coverage.

jian he’s picture

Title: [META] Drupal 8 version » Initialize the D8 version
Issue summary: View changes
Parent issue: » #2626290: [META] Port payment_ubercart to Drupal 8
jian he’s picture

jian he’s picture

FileSize
1.55 KB
9.28 KB

Add testing suite.

Xano’s picture

As I said before, please split this off in separate issues and be more specific about what parts of the module you are converting. This is hard to review and test.

Also, every little bit of code requires its own test, and make sure all code complies with the coding standards. Use Coder if you have to.

  1. +++ b/payment_ubercart.permissions.yml
    @@ -0,0 +1,3 @@
    +  title: 'Administer payment for ubercart'
    

    Ubercart is a name and as such should be capitalized.

  2. +++ b/payment_ubercart.permissions.yml
    @@ -0,0 +1,3 @@
    +  restrict access: true
    

    Why are you adding this?

  3. +++ b/src/Form/SettingsForm.php
    @@ -0,0 +1,50 @@
    +      '#title' => t('Delete payments when order deleted'),
    

    Why are you rewriting all these UI texts?

If you port something, do not change these small things everywhere.

jian he’s picture

Title: Initialize the D8 version » Make D8 version module can be installed
Issue summary: View changes
FileSize
1.53 KB

please split this off in separate issues and be more specific about what parts of the module you are converting. This is hard to review and test.

Oh, I understand now.
I changed the issue title and this patch only have small changes.

jian he’s picture

FileSize
634 bytes
1.62 KB

Fix coding standard.