【发布时间】:2019-07-09 08:13:40
【问题描述】:
鉴于下面的测试,为什么我收到了预期的 1 个测试的结果,但有 2 个断言都通过了?
<?php
namespace Tests\Feature;
use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;
class ConvertALeadTest extends TestCase
{
/** @test */
public function a_user_can_view_a_convert_page()
{
$response = $this->get('/');
$response->assertRedirect('login');
}
}
【问题讨论】: