tearDown() public method

public tearDown ( )
 public function tearDown()
 {
     while (($language = array_pop($this->createdLanguages)) !== null) {
         $this->languageService->deleteLanguage($language);
     }
     parent::tearDown();
 }
コード例 #2
0
ファイル: MetadataToolTest.php プロジェクト: Zunair/xataface
 function tearDown()
 {
     $app =& Dataface_Application::getInstance();
     $sql = "drop table if exists `md_test1`";
     $res = xf_db_query($sql, $app->db());
     if (!$res) {
         trigger_error(xf_db_error($app->db()), E_USER_ERROR);
     }
     $sql = "drop table if exists `md_test1__metadata`";
     $res = xf_db_query($sql, $app->db());
     if (!$res) {
         trigger_error(xf_db_error($app->db()), E_USER_ERROR);
     }
     parent::tearDown();
 }
コード例 #3
0
 /** Coverage: deleteRole **/
 public function tearDown()
 {
     parent::tearDown();
     $this->rs->deleteRole($this->newRole);
 }
コード例 #4
0
 public function tearDown()
 {
     parent::tearDown();
 }
コード例 #5
0
 public function tearDown()
 {
     parent::tearDown();
     $this->us->deleteUser($this->newUser);
 }
コード例 #6
0
 /**
  * @return void
  */
 protected function tearDown()
 {
     ReflectionSessionInstance::set();
     parent::tearDown();
 }
コード例 #7
0
 public function tearDown()
 {
     parent::tearDown();
     $this->os->deleteOrganization($this->subOrg);
     $this->os->deleteOrganization($this->testOrg);
 }
コード例 #8
0
 public function tearDown()
 {
     parent::tearDown();
     $this->getIndexer()->deleteIndex('ProductForAlgoliaIntegrationTest');
     $this->getIndexer()->waitForAlgoliaTasks();
 }
コード例 #9
0
 public function tearDown()
 {
     parent::tearDown();
     $this->jc->repositoryService()->deleteResources($this->testFolder->uri);
     $this->jc->userService()->deleteUser($this->testUser);
 }
コード例 #10
0
 public function tearDown()
 {
     parent::tearDown();
     $this->characterSetList->getGenerator()->removeOutput();
 }
コード例 #11
0
 public function tearDown()
 {
     unset($this->invitationObject);
     parent::tearDown();
 }
コード例 #12
0
 /** Coverage: deleteJob, deleteResource **/
 public function tearDown()
 {
     parent::tearDown();
     $this->js->deleteJob($this->testJob->id);
     $this->rs->deleteResources($this->testFolder->uri);
 }
コード例 #13
0
 public function tearDown()
 {
     parent::tearDown();
     $this->generator->removeOutput();
 }
コード例 #14
0
ファイル: testApp.php プロジェクト: Zunair/xataface
<?php

/**
 * A Test dataface application.  Used to perform unit tests on.
 */
require_once 'testconfig.php';
if (@$_REQUEST['-action'] == 'setUp') {
    require_once 'BaseTest.php';
    $test = new BaseTest();
    $test->setUp();
    unset($_REQUEST['-action']);
    unset($_GET['-action']);
} else {
    if (@$_REQUEST['-action'] == 'tearDown') {
        require_once 'BaseTest.php';
        $test = new BaseTest();
        $test->tearDown();
        unset($_REQUEST['-action']);
        unset($_GET['-action']);
        echo 'Tear down successful';
        exit;
    } else {
        require_once 'dataface-public-api.php';
        $app =& Dataface_Application::getInstance();
        $app->display();
    }
}
コード例 #15
0
 public function tearDown()
 {
     parent::tearDown();
     $this->testSuccess = false;
 }