You are here

public function MollieApiMock::molliePostUrl in Commerce Mollie 8

Overrides mollie_post_url for testing.

Order of a-sync onNotify and onMollieReturn calls must be executed in the test-suite.

Return value

\Symfony\Component\HttpFoundation\JsonResponse Returns an empty response.

1 string reference to 'MollieApiMock::molliePostUrl'
commerce_mollie_tests.routing.yml in tests/modules/commerce_mollie_tests/commerce_mollie_tests.routing.yml
tests/modules/commerce_mollie_tests/commerce_mollie_tests.routing.yml

File

tests/modules/commerce_mollie_tests/src/Services/MollieApiMock.php, line 134

Class

MollieApiMock
Mock class.

Namespace

Drupal\commerce_mollie_tests\Services

Code

public function molliePostUrl() {
  return new JsonResponse();
}