Exemplo n.º 1
0
 public function setUp()
 {
     parent::setUp();
     Service::register($this->di);
     $this->service = $this->di->getShared('service');
     $this->service->setTestCase($this);
 }
Exemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $_SERVER['PHWOOLCON_MIGRATION_PATH'] = TEST_ROOT_PATH . '/bin/migrations';
     $this->cli = Cli::register($this->di);
     $this->cli->setAutoExit(false);
     $this->output = new BufferedOutput();
 }
Exemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $this->configTrait = new TestConfigTrait();
     Config::set('white_listed', ['_white_list' => ['foo'], 'foo' => 'bar', 'hello' => 'world']);
     Config::set('black_listed', ['_black_list' => ['foo'], 'foo' => 'bar', 'hello' => 'world']);
     Config::set('protected', ['foo' => 'bar', 'hello' => 'world']);
 }
Exemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     Config::set('counter.default', 'rds');
     Counter::register($this->di);
     $db = Db::connection();
     $db->tableExists('counter') and $db->dropTable('counter');
 }
Exemplo n.º 5
0
 public function setUp()
 {
     parent::setUp();
     Db::clearMetadata();
     $this->di->set(User::class, TestUserModel::class);
     $this->di->set(UserProfile::class, TestUserProfileModel::class);
     $this->getUserModelInstance()->delete();
 }
Exemplo n.º 6
0
 public function setUp()
 {
     parent::setUp();
     Processor::register($this->di);
     new TestOrderModel();
     new TestOrderDataModel();
     $this->processor = $this->di->getShared('payment');
 }
Exemplo n.º 7
0
 public function setUp()
 {
     parent::setUp();
     Router::register($this->di);
     View::register($this->di);
 }
Exemplo n.º 8
0
 public function setUp()
 {
     parent::setUp();
 }
Exemplo n.º 9
0
 public function setUp()
 {
     parent::setUp();
     I18n::clearCache();
 }
Exemplo n.º 10
0
 public function setUp()
 {
     parent::setUp();
     Queue::register($this->di);
 }
Exemplo n.º 11
0
 public function setUp()
 {
     parent::setUp();
     Config::set('counter.default', 'auto');
     Counter::register($this->di);
 }
Exemplo n.º 12
0
 public function setUp()
 {
     parent::setUp();
     Cache::register($this->di);
     Cache::flush();
 }
Exemplo n.º 13
0
 public function setUp()
 {
     parent::setUp();
     Crypt::reset();
 }
Exemplo n.º 14
0
 public function setUp()
 {
     parent::setUp();
     Db::connection()->dropTable('config');
     Config::register($this->di);
 }