コード例 #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
ファイル: MapTest.php プロジェクト: activecollab/resistance
 /**
  * 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');
 }