/**
  * Set up test environment
  */
 public function setUp()
 {
     parent::setUp();
     $this->accounts = Resistance::factory('\\ActiveCollab\\Resistance\\Test\\Storage\\Accounts');
     $afiveone_id = $this->accounts->insert(['subdomain' => 'afiveone', 'url' => 'https://afiveone.activecollab.com', 'license_key' => '123'])[0];
     $this->assertEquals(1, $this->accounts->count());
     $this->assertEquals(1, $afiveone_id);
 }
 /**
  * Set up and test factory
  */
 public function setUp()
 {
     parent::setUp();
     $this->adding_storage = Resistance::factory('\\ActiveCollab\\Resistance\\Test\\Storage\\AddingMigrationTests');
     $this->assertInstanceOf('\\ActiveCollab\\Resistance\\Test\\Storage\\AddingMigrationTests', $this->adding_storage);
     $this->removing_storage = Resistance::factory('\\ActiveCollab\\Resistance\\Test\\Storage\\RemovingMigrationTests');
     $this->assertInstanceOf('\\ActiveCollab\\Resistance\\Test\\Storage\\RemovingMigrationTests', $this->removing_storage);
     $this->migrations = Resistance::discoverMigrations(__DIR__ . '/Migrations', 'ActiveCollab\\Resistance\\Test\\Migrations');
 }
Example #3
0
 /**
  * Set up and test factory
  */
 public function setUp()
 {
     parent::setUp();
     $this->storage = Resistance::factory('\\ActiveCollab\\Resistance\\Test\\Storage\\MapTests');
     $this->assertInstanceOf('\\ActiveCollab\\Resistance\\Test\\Storage\\MapTests', $this->storage);
 }
 /**
  * Set up test environment
  */
 public function setUp()
 {
     parent::setUp();
     $this->accounts = Resistance::factory('\\ActiveCollab\\Resistance\\Test\\Storage\\Accounts');
 }