Dieser Commit ist enthalten in:
Ursprung
2b21070b1a
Commit
f7a7c71f86
1583 geänderte Dateien mit 454759 neuen und 0 gelöschten Zeilen
27
tests/functional/application/models/SqlboxTest.php
Normale Datei
27
tests/functional/application/models/SqlboxTest.php
Normale Datei
|
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
require_once 'PHPUnit/Framework/TestCase.php';
|
||||
require_once APPLICATION_PATH . DS . implode(DS, array('models', 'Sqlbox.php'));
|
||||
|
||||
/**
|
||||
* @group Models
|
||||
*/
|
||||
|
||||
class SqlboxTest extends ControllerTestCase
|
||||
{
|
||||
public function testCanCreateTableSelectBox()
|
||||
{
|
||||
$model = new Application_Model_Sqlbox();
|
||||
$config = Msd_Configuration::getInstance();
|
||||
$config->set('dynamic.dbActual', 'information_schema');
|
||||
$selectBox = $model->getTableSelectBox();
|
||||
$tables = array('CHARACTER_SETS', 'COLLATIONS', 'COLLATION_CHARACTER_SET_APPLICABILITY',
|
||||
'COLUMNS', 'COLUMN_PRIVILEGES', 'ENGINES'
|
||||
);
|
||||
$pattern = '<option value="%1$s">%1$s</option>';
|
||||
foreach ($tables as $table) {
|
||||
$val = sprintf($pattern, $table);
|
||||
$this->assertTrue(strpos($selectBox, $val) !== false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Laden …
Tabelle hinzufügen
Einen Link hinzufügen
In neuem Issue referenzieren