示例#1
0
 /**
  * @group Coaches
  */
 public function testGetRandomCoaches()
 {
     foreach (\App\Lib\Helpers\Config::get('generic.localesSmall') as $nat) {
         $rndF = new \App\Lib\DsManager\Helpers\RandomFiller($nat);
         $coach = $rndF->getCoach();
         $this->assertNotEmpty($coach->toArray());
     }
 }
示例#2
0
 /**
  * @group OrmModels
  * @group CoachOrm
  */
 public function testCoachOrmGetSet()
 {
     $rndFiller = new \App\Lib\DsManager\Helpers\RandomFiller();
     $coach = $rndFiller->getCoach();
     $arrayPl = $coach->toArray();
     $coachO = \App\Lib\DsManager\Models\Orm\Coach::create($arrayPl);
     $this->assertNotEmpty($coachO);
     $newCoach = \App\Lib\DsManager\Models\Coach::fromArray($coachO->toArray());
     $this->assertNotEmpty($newCoach);
 }