Subscription Required

برای مشاهده این درس نیاز به خرید اشتراک دارید.

با خرید اشتراک به قابلیت نمایش آنلاین و دانلود بیش از 1500 جلسه آموزشی منتشر شده در وبسایت Laracasts دسترسی خواهید داشت.

درس قبلی
Stubbing Network Requests with Fixtures

Stubbing Network Requests with Fixtures

Stubbing Network Requests with Fixtures

قسمت 5
درس بعدی

درباره این درس

A true end-to-end test will span your entire system. This means no swapping things in the container, no faking third party APIs, and no stubbing endpoints. However, once you have at least one test that hits all necessary endpoints, the remaining tests are free to swap in fake data. This way, for example, you don't need to hit Stripe's server every time you test a portion of your registration form.

In this episode, we'll review how to intercept any XHR request and fake its response with fixture data.

دیدگاه های کاربران

× در حال پاسخ به: