예제 #1
0
 /**
  * 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);
 }
예제 #2
0
 /**
  * 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');
 }
예제 #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);
 }
예제 #4
0
 /**
  * Set up test environment
  */
 public function setUp()
 {
     parent::setUp();
     $this->accounts = Resistance::factory('\\ActiveCollab\\Resistance\\Test\\Storage\\Accounts');
 }