Skip to content

Commit

Permalink
Improve fixture deprecation warning.
Browse files Browse the repository at this point in the history
Refs #3200
  • Loading branch information
markstory committed Apr 2, 2014
1 parent 2c1e8eb commit 1137ad9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/TestSuite/Fixture/TestFixture.php
Expand Up @@ -147,7 +147,8 @@ protected function _schemaFromFields() {
}
// Trigger errors on deprecated usage.
if (is_array($data) && isset($data['key'])) {
$msg = 'Usage of the `key` options in columns is not supported. Try using the upgrade shell to migrate your fixtures.`';
$msg = 'Usage of the `key` options in columns is not supported. Try using the upgrade shell to migrate your fixtures.';
$msg .= ' You can download the upgrade shell from https://github.com/cakephp/upgrade.';
trigger_error($msg, E_USER_NOTICE);
}
$this->_schema->addColumn($field, $data);
Expand All @@ -161,6 +162,7 @@ protected function _schemaFromFields() {
// Trigger errors on deprecated usage.
if (empty($data['type'])) {
$msg = 'Indexes must define a type. Try using the upgrade shell to migrate your fixtures.';
$msg .= ' You can download the upgrade shell from https://github.com/cakephp/upgrade.';
trigger_error($msg, E_USER_NOTICE);
}
foreach ($this->fields['_indexes'] as $name => $data) {
Expand Down

0 comments on commit 1137ad9

Please sign in to comment.