Ejemplo n.º 1
0
 public function __construct(Application $application)
 {
     $this->setUpEnvironment($application);
     $this->setUpDatabase($application);
     $this->application = $application;
     TestCase::setApplication($application);
     $factoryGirl = new FactoryGirl(['factoryPaths' => [$application->config()['paths']['root']->expand('test', 'factories')]]);
     TestCase::setFactoryGirl($factoryGirl);
 }
Ejemplo n.º 2
0
 public function __construct($name = null, array $data = [], $dataName = '')
 {
     parent::__construct($name, $data, $dataName);
     $this->setUpRequest();
 }