/**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::write('App.namespace', 'TestApp');
     $this->Comments = TableRegistry::get('BitmaskedComments');
     $this->Comments->addBehavior('Tools.Bitmasked', ['mappedField' => 'statuses']);
 }
 public function setUp()
 {
     parent::setUp();
     Configure::write('App.namespace', 'TestApp');
     $this->Comments = TableRegistry::get('JsonableComments');
     $this->Comments->addBehavior('Tools.Jsonable', ['fields' => ['details']]);
 }
Example #3
0
 /**
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::delete('FormConfig');
     $this->View = new View(null);
     $this->Form = new FormHelper($this->View);
 }
Example #4
0
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     Log::drop('email');
     Email::drop('test');
     Email::dropTransport('debug');
     Email::dropTransport('test_smtp');
 }
 public function setUp()
 {
     parent::setUp();
     $this->PostalCodes = TableRegistry::get('Data.PostalCodes');
     $entity = $this->PostalCodes->newEntity(['code' => '81222']);
     $this->assertEmpty($entity->errors());
     $result = $this->PostalCodes->save($entity);
     $this->assertNotEmpty($result);
 }
 public function setUp()
 {
     parent::setUp();
     if ($this->isDebug()) {
         $this->CurrencyBitcoin = new CurrencyBitcoinLib();
         return;
     }
     $this->CurrencyBitcoin = $this->getMock('Data\\Lib\\CurrencyBitcoinLib', ['_get']);
     $this->path = Plugin::path('Data') . 'tests' . DS . 'test_files' . DS . 'json' . DS;
 }
 public function setUp()
 {
     parent::setUp();
     if ($this->isDebug()) {
         $this->GeoImport = new GeoImportLib();
         return;
     }
     $this->GeoImport = $this->getMock('Data\\Lib\\GeoImportLib', ['_getFromUrl']);
     $this->path = Plugin::path('Data') . 'tests' . DS . 'test_files' . DS . 'html' . DS;
     // Liste-der-St-C3-A4dte-in-der-Schweiz-action-edit-section-4.html
     Cache::clear();
 }
Example #8
0
 public function tearDown()
 {
     unset($this->Table);
     TableRegistry::clear();
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4';
 }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Controller);
 }
Example #11
0
 public function setUp()
 {
     parent::setUp();
     $this->Text = new Text();
 }
 /**
  * tearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
 }
Example #13
0
 /**
  * SetUp method
  *
  * @return void
  */
 public function setUp()
 {
     parent::setUp();
     Configure::write('App.namespace', 'TestApp');
     $this->Form = new ContactForm();
 }
 public function setUp()
 {
     parent::setUp();
     $this->MimeTypeHelper = new MimeTypeHelper(new View(null));
 }
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Timeline);
 }
 public function setUp()
 {
     parent::setUp();
     $this->Districts = TableRegistry::get('Data.Districts');
 }
 public function setUp()
 {
     parent::setUp();
     $this->Tokens = TableRegistry::get('Tools.Tokens');
 }
 public function setUp()
 {
     parent::setUp();
     $this->Counties = TableRegistry::get('Data.Counties');
 }
 public function setUp()
 {
     parent::setUp();
     $this->Comments = TableRegistry::get('StringComments');
     $this->Comments->addBehavior('Tools.String', ['fields' => ['title'], 'input' => ['ucfirst']]);
 }
 /**
  * TearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Common);
 }
 /**
  * TearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Html);
 }
 public function setUp()
 {
     parent::setUp();
     $this->States = TableRegistry::get('Data.States');
 }
Example #23
0
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Format);
 }
 public function tearDown()
 {
     parent::tearDown();
     $_SERVER['argv'] = $this->serverArgBackup;
 }
 public function setUp()
 {
     parent::setUp();
 }
 public function setUp()
 {
     parent::setUp();
     $this->MimeTypeImages = TableRegistry::get('Data.MimeTypeImages');
 }
 public function tearDown()
 {
     TableRegistry::clear();
     parent::tearDown();
 }
 public function setUp()
 {
     parent::setUp();
     $this->DataHelper = new DataHelper(new View(null));
 }
 /**
  * TearDown method
  *
  * @return void
  */
 public function tearDown()
 {
     parent::tearDown();
     unset($this->Gravatar);
 }
Example #30
0
 public function setUp()
 {
     parent::setUp();
     $this->Text = new TextHelper(new View(null));
 }