159 - Unit Testing Middleware

This commit is contained in:
Adam Wathan
2018-01-22 14:54:15 -05:00
parent 9fceea25bf
commit 9174e9d0c3
6 changed files with 90 additions and 3 deletions

View File

@@ -21,7 +21,8 @@ class ConnectWithStripeTest extends DuskTestCase
$this->browse(function (Browser $browser) use ($user) {
$browser->loginAs($user)
->visit('/backstage/stripe-connect/authorize')
->visit('/backstage/stripe-connect/connect')
->clickLink('Connect with Stripe')
->assertUrlIs('https://connect.stripe.com/oauth/authorize')
->assertQueryStringHas('response_type', 'code')
->assertQueryStringHas('scope', 'read_write')