Last active
December 14, 2015 00:09
-
-
Save amenk/4997102 to your computer and use it in GitHub Desktop.
Magento DB Adapter Mock which does not do anything
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class AM_PHPUnit_Db_Adapter_Mock implements Varien_Db_Adapter_Interface | |
| { | |
| public function beginTransaction() {} | |
| public function commit() {} | |
| public function rollBack() {} | |
| public function newTable($tableName = null, $schemaName = null) {} | |
| public function createTable(Varien_Db_Ddl_Table $table) {} | |
| public function dropTable($tableName, $schemaName = null) {} | |
| public function truncateTable($tableName, $schemaName = null) {} | |
| public function isTableExists($tableName, $schemaName = null) {} | |
| public function showTableStatus($tableName, $schemaName = null) {} | |
| public function describeTable($tableName, $schemaName = null) {} | |
| public function createTableByDdl($tableName, $newTableName) {} | |
| public function modifyColumnByDdl($tableName, $columnName, $definition, $flushData = false, $schemaName = null) {} | |
| public function renameTable($oldTableName, $newTableName, $schemaName = null) {} | |
| public function addColumn($tableName, $columnName, $definition, $schemaName = null) {} | |
| public function changeColumn($tableName, $oldColumnName, $newColumnName, $definition, $flushData = false, | |
| $schemaName = null) {} | |
| public function modifyColumn($tableName, $columnName, $definition, $flushData = false, $schemaName = null) {} | |
| public function dropColumn($tableName, $columnName, $schemaName = null) {} | |
| public function tableColumnExists($tableName, $columnName, $schemaName = null) {} | |
| public function addIndex($tableName, $indexName, $fields, $indexType = self::INDEX_TYPE_INDEX, $schemaName = null) {} | |
| public function dropIndex($tableName, $keyName, $schemaName = null) {} | |
| public function getIndexList($tableName, $schemaName = null) {} | |
| public function addForeignKey($fkName, $tableName, $columnName, $refTableName, $refColumnName, | |
| $onDelete = self::FK_ACTION_CASCADE, $onUpdate = self::FK_ACTION_CASCADE, | |
| $purge = false, $schemaName = null, $refSchemaName = null) {} | |
| public function dropForeignKey($tableName, $fkName, $schemaName = null) {} | |
| public function getForeignKeys($tableName, $schemaName = null) {} | |
| public function select() {} | |
| public function insertOnDuplicate($table, array $data, array $fields = array()) {} | |
| public function insertMultiple($table, array $data) {} | |
| public function insertArray($table, array $columns, array $data) {} | |
| public function insert($table, array $bind) {} | |
| public function insertForce($table, array $bind) {} | |
| public function update($table, array $bind, $where = '') {} | |
| public function delete($table, $where = '') {} | |
| public function query($sql, $bind = array()) {} | |
| public function multiQuery($sql) {} | |
| public function fetchAll($sql, $bind = array(), $fetchMode = null) {} | |
| public function fetchRow($sql, $bind = array(), $fetchMode = null) {} | |
| public function fetchAssoc($sql, $bind = array()) {} | |
| public function fetchCol($sql, $bind = array()) {} | |
| public function fetchPairs($sql, $bind = array()) {} | |
| public function fetchOne($sql, $bind = array()) {} | |
| public function quote($value, $type = null) {} | |
| public function quoteInto($text, $value, $type = null, $count = null) {} | |
| public function quoteIdentifier($ident, $auto = false) {} | |
| public function quoteColumnAs($ident, $alias, $auto = false) {} | |
| public function quoteTableAs($ident, $alias = null, $auto = false) {} | |
| public function formatDate($date, $includeTime = true) {} | |
| public function startSetup() {} | |
| public function endSetup() {} | |
| public function setCacheAdapter($adapter) {} | |
| public function allowDdlCache() {} | |
| public function disallowDdlCache() {} | |
| public function resetDdlCache($tableName = null, $schemaName = null) {} | |
| public function saveDdlCache($tableCacheKey, $ddlType, $data) {} | |
| public function loadDdlCache($tableCacheKey, $ddlType) {} | |
| public function prepareSqlCondition($fieldName, $condition) {} | |
| public function prepareColumnValue(array $column, $value) {} | |
| public function getCheckSql($condition, $true, $false) {} | |
| public function getIfNullSql($expression, $value = 0) {} | |
| public function getConcatSql(array $data, $separator = null) {} | |
| public function getLengthSql($string) {} | |
| public function getLeastSql(array $data) {} | |
| public function getGreatestSql(array $data) {} | |
| public function getDateAddSql($date, $interval, $unit) {} | |
| public function getDateSubSql($date, $interval, $unit) {} | |
| public function getDateFormatSql($date, $format) {} | |
| public function getDatePartSql($date) {} | |
| public function getSubstringSql($stringExpression, $pos, $len = null) {} | |
| public function getStandardDeviationSql($expressionField) {} | |
| public function getDateExtractSql($date, $unit) {} | |
| public function getTableName($tableName) {} | |
| public function getIndexName($tableName, $fields, $indexType = '') {} | |
| public function getForeignKeyName($priTableName, $priColumnName, $refTableName, $refColumnName) {} | |
| public function disableTableKeys($tableName, $schemaName = null) {} | |
| public function enableTableKeys($tableName, $schemaName = null) {} | |
| public function insertFromSelect(Varien_Db_Select $select, $table, array $fields = array(), $mode = false) {} | |
| public function updateFromSelect(Varien_Db_Select $select, $table) {} | |
| public function deleteFromSelect(Varien_Db_Select $select, $table) {} | |
| public function getTablesChecksum($tableNames, $schemaName = null) {} | |
| public function supportStraightJoin() {} | |
| public function orderRand(Varien_Db_Select $select, $field = null) {} | |
| public function forUpdate($sql) {} | |
| public function getPrimaryKeyName($tableName, $schemaName = null) {} | |
| public function decodeVarbinary($value) {} | |
| public function getSuggestedZeroDate() {} | |
| public function getTransactionLevel() {} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment