PHP Classes

File: tests/Feature/Auth/AuthenticationTest.php

Recommend this page to a friend!
  Classes of Maniruzzaman Akash   Laravel Stripe Checkout   tests/Feature/Auth/AuthenticationTest.php   Download  
File: tests/Feature/Auth/AuthenticationTest.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Stripe Checkout
E-commerce checkout that uses Stripe to pay orders
Author: By
Last change:
Date: 10 months ago
Size: 771 bytes


Class file image Download

use App\Models\User;

test('login screen can be rendered', function () {
$response = $this->get('/login');


test('users can authenticate using the login screen', function () {
$user = User::factory()->create();

$response = $this->post('/login', [
'email' => $user->email,
'password' => 'password',


test('users can not authenticate with invalid password', function () {
$user = User::factory()->create();

$this->post('/login', [
'email' => $user->email,
'password' => 'wrong-password',