Skip to content
Browse files

Rename test database

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@905 7c3ca157-0c34-0410-bff1-cbf682f78f5c
  • Loading branch information...
1 parent d1325f8 commit b2107e898583a1e851a15cd55e24fb6fe1d39eec jakubvrana committed Jul 24, 2009
View
7 examples/cds.sql
@@ -1,5 +1,6 @@
-CREATE DATABASE selenium COLLATE utf8_czech_ci;
-USE selenium;
+DROP DATABASE IF EXISTS adminer_test;
+CREATE DATABASE adminer_test COLLATE utf8_czech_ci;
+USE adminer_test;
CREATE TABLE interprets (
id int NOT NULL auto_increment,
@@ -10,7 +11,7 @@ CREATE TABLE interprets (
CREATE TABLE albums (
id int NOT NULL auto_increment,
interpret int NOT NULL COMMENT 'Interpret',
- name varchar(100) NOT NULL COMMENT 'Name',
+ title varchar(100) NOT NULL COMMENT 'Title',
FOREIGN KEY (interpret) REFERENCES interprets(id),
PRIMARY KEY (id)
) ENGINE=InnoDB COMMENT='Albums';
View
2 examples/editor-cds/index.php
@@ -19,7 +19,7 @@ function credentials() {
function database() {
// will be escaped by Adminer
- return 'selenium';
+ return 'adminer_test';
}
function login($login, $password) {
View
2 tests/0-login.html
@@ -34,7 +34,7 @@
<tr>
<td>type</td>
<td>query</td>
- <td>DROP DATABASE IF EXISTS selenium</td>
+ <td>DROP DATABASE IF EXISTS adminer_test</td>
</tr>
<tr>
<td>clickAndWait</td>
View
2 tests/1-create-database.html
@@ -24,7 +24,7 @@
<tr>
<td>type</td>
<td>name</td>
- <td>selenium</td>
+ <td>adminer_test</td>
</tr>
<tr>
<td>select</td>
View
4 tests/10-clone.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;select=albums</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;select=albums</td>
<td></td>
</tr>
<tr>
@@ -28,7 +28,7 @@
</tr>
<tr>
<td>type</td>
- <td>fields[album]</td>
+ <td>fields[title]</td>
<td>Black and White</td>
</tr>
<tr>
View
2 tests/11-reference.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;select=albums</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;select=albums</td>
<td></td>
</tr>
<tr>
View
4 tests/12-update.html
@@ -13,12 +13,12 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;edit=albums&amp;where%5Bid%5D=2</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;edit=albums&amp;where%5Bid%5D=2</td>
<td></td>
</tr>
<tr>
<td>type</td>
- <td>fields[album]</td>
+ <td>fields[title]</td>
<td>Black or White</td>
</tr>
<tr>
View
2 tests/13-delete.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;select=albums</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;select=albums</td>
<td></td>
</tr>
<tr>
View
2 tests/14-truncate.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;select=albums</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;select=albums</td>
<td></td>
</tr>
<tr>
View
6 tests/15-privileges.html
@@ -19,12 +19,12 @@
<tr>
<td>type</td>
<td>user</td>
- <td>selenium</td>
+ <td>adminer_test</td>
</tr>
<tr>
<td>type</td>
<td>objects[0]</td>
- <td>selenium.*</td>
+ <td>adminer_test.*</td>
</tr>
<tr>
<td>click</td>
@@ -108,7 +108,7 @@
</tr>
<tr>
<td>clickAndWait</td>
- <td>//div[@id='content']/table/tbody/tr[td[2]='selenium']/td[1]/a</td>
+ <td>//div[@id='content']/table/tbody/tr[td[2]='adminer_test']/td[1]/a</td>
<td></td>
</tr>
<tr>
View
2 tests/17-export.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;dump=</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;dump=</td>
<td></td>
</tr>
<tr>
View
2 tests/18-events.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;event=</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;event=</td>
<td></td>
</tr>
<tr>
View
10 tests/19-procedures.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;procedure=</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;procedure=</td>
<td></td>
</tr>
<tr>
@@ -39,7 +39,7 @@
<tr>
<td>type</td>
<td>fields[1.1][field]</td>
- <td>album_name</td>
+ <td>album_title</td>
</tr>
<tr>
<td>select</td>
@@ -54,7 +54,7 @@
<tr>
<td>type</td>
<td>definition</td>
- <td>BEGIN<br />SELECT id INTO @interpret FROM interprets WHERE interpret = interpret_name;<br />IF @interpret IS NULL THEN<br />&nbsp;&nbsp;&nbsp;&nbsp;INSERT INTO interprets (interpret) VALUES (interpret_name);<br />&nbsp;&nbsp;&nbsp;&nbsp;SET @interpret = LAST_INSERT_ID();<br />END IF;<br />INSERT INTO albums (interpret, album) VALUES (@interpret, album_name);<br />END</td>
+ <td>BEGIN<br />SELECT id INTO @interpret FROM interprets WHERE name = interpret_name;<br />IF @interpret IS NULL THEN<br />&nbsp;&nbsp;&nbsp;&nbsp;INSERT INTO interprets (name) VALUES (interpret_name);<br />&nbsp;&nbsp;&nbsp;&nbsp;SET @interpret = LAST_INSERT_ID();<br />END IF;<br />INSERT INTO albums (interpret, title) VALUES (@interpret, album_title);<br />END</td>
</tr>
<tr>
<td>type</td>
@@ -83,7 +83,7 @@
</tr>
<tr>
<td>type</td>
- <td>fields[album_name]</td>
+ <td>fields[album_title]</td>
<td>Dangerous</td>
</tr>
<tr>
@@ -98,7 +98,7 @@
</tr>
<tr>
<td>clickAndWait</td>
- <td>link=selenium</td>
+ <td>link=adminer_test</td>
<td></td>
</tr>
<tr>
View
4 tests/2-create-table.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium</td>
+ <td>/adminer/adminer/?db=adminer_test</td>
<td></td>
</tr>
<tr>
@@ -49,7 +49,7 @@
<tr>
<td>type</td>
<td>fields[1.1][field]</td>
- <td>interpret</td>
+ <td>name</td>
</tr>
<tr>
<td>select</td>
View
2 tests/20-partitioning.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;table=interprets</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;table=interprets</td>
<td></td>
</tr>
<tr>
View
2 tests/22-history.html
@@ -18,7 +18,7 @@
</tr>
<tr>
<td>verifyTextPresent</td>
- <td>DROP DATABASE IF EXISTS selenium</td>
+ <td>DROP DATABASE IF EXISTS adminer_test</td>
<td></td>
</tr>
View
8 tests/23-editor.html
@@ -17,7 +17,7 @@
<td></td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAndWait</td>
<td>link=Interprets</td>
<td></td>
</tr>
@@ -28,7 +28,7 @@
</tr>
<tr>
<td>type</td>
- <td>fields[interpret]</td>
+ <td>fields[name]</td>
<td>Michael Jackson</td>
</tr>
<tr>
@@ -53,11 +53,11 @@
</tr>
<tr>
<td>type</td>
- <td>fields[album]</td>
+ <td>fields[title]</td>
<td>Dangerous</td>
</tr>
<tr>
- <td>click</td>
+ <td>clickAndWait</td>
<td>//input[@value='Save']</td>
<td></td>
</tr>
View
4 tests/3-create-index.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;table=interprets</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;table=interprets</td>
<td></td>
</tr>
<tr>
@@ -29,7 +29,7 @@
<tr>
<td>select</td>
<td>indexes[1][columns][1]</td>
- <td>label=interpret</td>
+ <td>label=name</td>
</tr>
<tr>
<td>clickAndWait</td>
View
4 tests/4-create-table-2.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;table=interprets&amp;lang=en</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;table=interprets&amp;lang=en</td>
<td></td>
</tr>
<tr>
@@ -54,7 +54,7 @@
<tr>
<td>type</td>
<td>fields[1.11][field]</td>
- <td>album</td>
+ <td>title</td>
</tr>
<tr>
<td>select</td>
View
2 tests/5-foreign-key.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;table=albums</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;table=albums</td>
<td></td>
</tr>
<tr>
View
2 tests/6-alter-table.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;table=interprets</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;table=interprets</td>
<td></td>
</tr>
<tr>
View
4 tests/7-create-trigger.html
@@ -13,7 +13,7 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;trigger=albums</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;trigger=albums</td>
<td></td>
</tr>
<tr>
@@ -24,7 +24,7 @@
<tr>
<td>type</td>
<td>Statement</td>
- <td>UPDATE interprets SET albums = albums + 1 WHERE interpret = NEW.interpret</td>
+ <td>UPDATE interprets SET albums = albums + 1 WHERE id = NEW.interpret</td>
</tr>
<tr>
<td>clickAndWait</td>
View
4 tests/8-create-view.html
@@ -13,13 +13,13 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;view=</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;view=</td>
<td></td>
</tr>
<tr>
<td>type</td>
<td>select</td>
- <td>SELECT albums.id, albums.album, interprets.interpret<br />FROM albums<br />LEFT JOIN interprets ON albums.interpret = interprets.id</td>
+ <td>SELECT albums.id, albums.title, interprets.name<br />FROM albums<br />LEFT JOIN interprets ON albums.interpret = interprets.id</td>
</tr>
<tr>
<td>type</td>
View
8 tests/9-insert.html
@@ -13,12 +13,12 @@
</thead><tbody>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;edit=interprets</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;edit=interprets</td>
<td></td>
</tr>
<tr>
<td>type</td>
- <td>fields[interpret]</td>
+ <td>fields[name]</td>
<td>Michael Jackson</td>
</tr>
<tr>
@@ -33,7 +33,7 @@
</tr>
<tr>
<td>open</td>
- <td>/adminer/adminer/?db=selenium&amp;edit=albums</td>
+ <td>/adminer/adminer/?db=adminer_test&amp;edit=albums</td>
<td></td>
</tr>
<tr>
@@ -43,7 +43,7 @@
</tr>
<tr>
<td>type</td>
- <td>fields[album]</td>
+ <td>fields[title]</td>
<td>Dangerous</td>
</tr>
<tr>

0 comments on commit b2107e8

Please sign in to comment.
Something went wrong with that request. Please try again.