public function CheckoutTest::dataProviderUserAuthenticatedAndCardAuthentication in Commerce Stripe 8
Data provider for user authentication and card authentication.
Return value
\Generator The data.
File
- tests/
src/ FunctionalJavascript/ CheckoutTest.php, line 412
Class
- CheckoutTest
- Tests checkout with Stripe.
Namespace
Drupal\Tests\commerce_stripe\FunctionalJavascriptCode
public function dataProviderUserAuthenticatedAndCardAuthentication() {
// Logged in, card authorized.
(yield [
TRUE,
TRUE,
]);
// Anonymous, card authorized.
(yield [
FALSE,
TRUE,
]);
// Logged in, card unauthorized.
(yield [
TRUE,
FALSE,
]);
// Anonymous, card unauthorized.
(yield [
FALSE,
FALSE,
]);
}