Hello guys I'm writing tests. And i dont know how to save result of first test in session. For example i add user. My first test is passed. But when it comes to second test its failed, beacuse he cant find user Malik. And thats why i need to save it. Please guy help me, im beginner at this. And sorry for my english! Thanks a lot!
public function testAddUser()
{
\App::$domain->***->***->AddHuman('Malik');
}
public function testGivePresent()
{
\App::$domain->***->***->GivePresent('Malik', 'phone');
}
if Im doing like that its okay, my test is ok
public function testAddUser()
{
\App::$domain->***->***->AddHuman('Malik');
\App::$domain->***->***->GivePresent('Malik', 'phone');
}
Aucun commentaire:
Enregistrer un commentaire