mercredi 27 novembre 2019

PHPUnit show errors but not show successful alert

I use Laravel 5.8 and phphunit version 7.5. When I run PHPUnit with error, show me error but when not has error show me only this line

PHPUnit 7.5.0 by Sebastian Bergmann and contributors. My test class:

use Tests\TestCase;

class leadTest extends TestCase
{
    public $Array= ['lead_name' => 'Jon','lead_family'=>'Doe'];
    public function test_store()
    {
        $this->withoutExceptionHandling();
        $this->post('leads', $this->Array());
        $this->assertDatabaseHas('leads', $this->Array);
    }
}


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire