4 pass, 2 fail

DrupalCI console output and artifacts are no longer available from dispatcher.drupalci.org. Use GitLab CI instead

42Commerce_square.Commerce_square
1Commerce_square.Drupal\Tests\commerce_square\FunctionalJavascript\ConfigureGatewayTest
- testCreateSquareGateway
2Commerce_square.Drupal\Tests\commerce_square\Kernel\SquareConfigurationUpradeTest
- testUpgrade1
- testUpgrade2
2Commerce_square.Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest
Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest
exception: [Other] Line 0 of sites/default/files/simpletest/phpunit-2.xml:
PHPunit Test failed to complete; Error: PHPUnit 6.5.14 by Sebastian Bergmann and contributors.

Testing Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest
.EFFFFF                                                             7 / 7 (100%)

Time: 13.7 seconds, Memory: 6.00MB

There was 1 error:

1) Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest::testCreatePayment
SquareConnect\ApiException: [HTTP/1.1 400 Bad Request] {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"MISSING_REQUIRED_PARAMETER","detail":"Missing required parameter.","field":"customer_id"}]}

/var/www/html/vendor/square/connect/lib/ApiClient.php:236
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:268
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:192
/var/www/html/modules/contrib/commerce_square/src/Plugin/Commerce/PaymentGateway/Square.php:323
/var/www/html/modules/contrib/commerce_square/tests/src/Kernel/SquareApiIntegrationTest.php:88

--

There were 5 failures:

1) Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest::testCreatePaymentBadCvv
Failed asserting that exception of type "SquareConnect\ApiException" matches expected exception "\Drupal\commerce_payment\Exception\SoftDeclineException". Message was: "[HTTP/1.1 400 Bad Request] {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"MISSING_REQUIRED_PARAMETER","detail":"Missing required parameter.","field":"customer_id"}]}" at
/var/www/html/vendor/square/connect/lib/ApiClient.php:236
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:268
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:192
/var/www/html/modules/contrib/commerce_square/src/Plugin/Commerce/PaymentGateway/Square.php:323
/var/www/html/modules/contrib/commerce_square/tests/src/Kernel/SquareApiIntegrationTest.php:101
.

2) Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest::testCreatePaymentBadPostalCode
Failed asserting that exception of type "SquareConnect\ApiException" matches expected exception "\Drupal\commerce_payment\Exception\SoftDeclineException". Message was: "[HTTP/1.1 400 Bad Request] {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"MISSING_REQUIRED_PARAMETER","detail":"Missing required parameter.","field":"customer_id"}]}" at
/var/www/html/vendor/square/connect/lib/ApiClient.php:236
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:268
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:192
/var/www/html/modules/contrib/commerce_square/src/Plugin/Commerce/PaymentGateway/Square.php:323
/var/www/html/modules/contrib/commerce_square/tests/src/Kernel/SquareApiIntegrationTest.php:114
.

3) Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest::testCreatePaymentBadExpiryDate
Failed asserting that exception of type "SquareConnect\ApiException" matches expected exception "\Drupal\commerce_payment\Exception\SoftDeclineException". Message was: "[HTTP/1.1 400 Bad Request] {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"MISSING_REQUIRED_PARAMETER","detail":"Missing required parameter.","field":"customer_id"}]}" at
/var/www/html/vendor/square/connect/lib/ApiClient.php:236
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:268
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:192
/var/www/html/modules/contrib/commerce_square/src/Plugin/Commerce/PaymentGateway/Square.php:323
/var/www/html/modules/contrib/commerce_square/tests/src/Kernel/SquareApiIntegrationTest.php:127
.

4) Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest::testCreatePaymentDeclined
Failed asserting that exception of type "SquareConnect\ApiException" matches expected exception "\Drupal\commerce_payment\Exception\SoftDeclineException". Message was: "[HTTP/1.1 400 Bad Request] {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"MISSING_REQUIRED_PARAMETER","detail":"Missing required parameter.","field":"customer_id"}]}" at
/var/www/html/vendor/square/connect/lib/ApiClient.php:236
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:268
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:192
/var/www/html/modules/contrib/commerce_square/src/Plugin/Commerce/PaymentGateway/Square.php:323
/var/www/html/modules/contrib/commerce_square/tests/src/Kernel/SquareApiIntegrationTest.php:142
.

5) Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest::testCreatePaymentAlreadyUsed
Failed asserting that exception of type "SquareConnect\ApiException" matches expected exception "\Drupal\commerce_payment\Exception\InvalidResponseException". Message was: "[HTTP/1.1 400 Bad Request] {"errors":[{"category":"INVALID_REQUEST_ERROR","code":"MISSING_REQUIRED_PARAMETER","detail":"Missing required parameter.","field":"customer_id"}]}" at
/var/www/html/vendor/square/connect/lib/ApiClient.php:236
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:268
/var/www/html/vendor/square/connect/lib/Api/TransactionsApi.php:192
/var/www/html/modules/contrib/commerce_square/src/Plugin/Commerce/PaymentGateway/Square.php:323
/var/www/html/modules/contrib/commerce_square/tests/src/Kernel/SquareApiIntegrationTest.php:155
.

ERRORS!
Tests: 7, Assertions: 70, Errors: 1, Failures: 5.
Unknown
fail: [run-tests.sh check] Line 0 of :
FATAL Drupal\Tests\commerce_square\Kernel\SquareApiIntegrationTest: test runner returned a non-zero error code (2).
1Commerce_square.Drupal\Tests\commerce_square\Kernel\ConnectTest
- testConnectService

13 coding standards messages

src/Form/SquareSettings.php
line 11Missing class doc comment
src/IntegrationChargeRequest.php
33You must use "/**" style comments for a member variable comment
52You must use "/**" style comments for a member variable comment
71You must use "/**" style comments for a member variable comment
95Class property $integration_id should use lowerCamel naming without underscores
src/Plugin/Commerce/PaymentGateway/Square.php
26Unused use statement
242A unary operator statement must not be followed by a space
322Line indented incorrectly; expected 8 spaces, found 9
323Line indented incorrectly; expected 8 spaces, found 9
411Return comment indentation must be 3 spaces, found 2 spaces
423Expected newline after closing brace
523Inline doc block comments are not allowed; use "/* Comment */" or "// Comment" instead
631Functions must not contain multiple empty lines in a row; found 2 empty lines

History

UpdatedResult
3 Sep 2019 at 13:07 UTC