You are here

public function SystemTable::moduleSetSchemaVersion in X Autoload 7.5

Parameters

string $module:

int $version:

Throws

\Exception

File

tests/src/VirtualDrupal/SystemTable.php, line 101

Class

SystemTable
Virtual Drupal database / persistence layer.

Namespace

Drupal\xautoload\Tests\VirtualDrupal

Code

public function moduleSetSchemaVersion($module, $version) {
  if (!isset($this->systemTableData[$module])) {
    throw new \Exception("Unknown module '{$module}'.");
  }
  $this->systemTableData[$module]['schema_version'] = $version;
}