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