Exemplo n.º 1
0
 public function setup()
 {
     parent::setup();
     $this->repository = Repository::get('default');
 }
Exemplo n.º 2
0
 public function testGetDefaultName()
 {
     $this->assertEquals('default', Repository::getDefaultName());
 }
Exemplo n.º 3
0
<?php

require_once __DIR__ . '/../TestsHelper.php';
set_include_path(__DIR__ . '/models' . PATH_SEPARATOR . get_include_path());
\Stato\TestEnv::createTestDatabase();
\Stato\Model\Repository::setup('default', \Stato\TestEnv::getDbConfig());
Exemplo n.º 4
0
 public static function getDefaultRepositoryName()
 {
     return Repository::getDefaultName();
 }