mercredi 28 octobre 2015

laravel with codeception unitTesting : can't check relation

I want to unittest hasMany belongsTo&more method.

environment 

  • laravel 5.0.33
  • codeception 2.0.16

example
app/User.php

public function user()
{
    return $this->hasMany('\App\Users', 'name', 'user');
}

what would be a good way to do it?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1k8Vw8l
via IFTTT

Aucun commentaire:

Enregistrer un commentaire