Browse Source

shorten table identifiers in tests

tags/v6.0.0alpha2
Jörn Friedrich Dreyer 11 years ago
parent
commit
fc27052887
4 changed files with 7 additions and 7 deletions
  1. 2
    2
      tests/data/db_structure.xml
  2. 1
    1
      tests/data/db_structure2.xml
  3. 2
    2
      tests/lib/db.php
  4. 2
    2
      tests/lib/dbschema.php

+ 2
- 2
tests/data/db_structure.xml View File



<table> <table>


<name>*dbprefix*contacts_addressbooks</name>
<name>*dbprefix*cntcts_addrsbks</name>


<declaration> <declaration>




<table> <table>


<name>*dbprefix*contacts_cards</name>
<name>*dbprefix*cntcts_cards</name>


<declaration> <declaration>



+ 1
- 1
tests/data/db_structure2.xml View File



<table> <table>


<name>*dbprefix*contacts_addressbooks</name>
<name>*dbprefix*cntcts_addrsbks</name>


<declaration> <declaration>



+ 2
- 2
tests/lib/db.php View File

OC_DB::createDbFromStructure(self::$schema_file); OC_DB::createDbFromStructure(self::$schema_file);


$this->test_prefix = $r; $this->test_prefix = $r;
$this->table1 = $this->test_prefix.'contacts_addressbooks';
$this->table2 = $this->test_prefix.'contacts_cards';
$this->table1 = $this->test_prefix.'cntcts_addrsbks';
$this->table2 = $this->test_prefix.'cntcts_cards';
$this->table3 = $this->test_prefix.'vcategory'; $this->table3 = $this->test_prefix.'vcategory';
} }



+ 2
- 2
tests/lib/dbschema.php View File

file_put_contents( self::$schema_file2, $content ); file_put_contents( self::$schema_file2, $content );


$this->test_prefix = $r; $this->test_prefix = $r;
$this->table1 = $this->test_prefix.'contacts_addressbooks';
$this->table2 = $this->test_prefix.'contacts_cards';
$this->table1 = $this->test_prefix.'cntcts_addrsbks';
$this->table2 = $this->test_prefix.'cntcts_cards';
} }


public function tearDown() { public function tearDown() {

Loading…
Cancel
Save