1
laravel 5中登錄認證phpunit測試用例的過程是什麼?phpunit中登錄認證測試用例的步驟laravel
$credentials=[
'email'=>'[email protected]',
'password'=>'admin'
];
$response=$this->call('POST','login',$credentials);
$this->assertTrue($response->isOk());