Answer the question
In order to leave comments, you need to log in
Where is the truth in unit tests?
Good afternoon, I read a lot about unit tests and I constantly see two different approaches.
First approach.
$response = $test->create($data);
$this->assertInstanceOf(Test::class, $response);
$response = $test->create($data);
$this->assertEquals($response->test, $data['test']);
$this->assertEquals($response->test1, $data['test1']);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question