mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-02-07 12:36:25 +00:00
Fixing broken tests.
This commit is contained in:
parent
0029a275bd
commit
e733c569be
2 changed files with 2 additions and 5 deletions
|
@ -409,7 +409,7 @@ class CakeSchema extends Object {
|
||||||
}
|
}
|
||||||
$col .= join(', ', $props);
|
$col .= join(', ', $props);
|
||||||
} elseif ($field == 'tableParameters') {
|
} elseif ($field == 'tableParameters') {
|
||||||
|
$col = "\t\t'tableParameters' => array(";
|
||||||
}
|
}
|
||||||
$col .= ")";
|
$col .= ")";
|
||||||
$cols[] = $col;
|
$cols[] = $col;
|
||||||
|
|
|
@ -484,9 +484,7 @@ class CakeSchemaTest extends CakeTestCase {
|
||||||
|
|
||||||
App::build();
|
App::build();
|
||||||
}
|
}
|
||||||
function getTests() {
|
|
||||||
return array('start', 'startCase', 'testGenerateTable', 'endCase', 'end');
|
|
||||||
}
|
|
||||||
/**
|
/**
|
||||||
* test that tables are generated correctly
|
* test that tables are generated correctly
|
||||||
*
|
*
|
||||||
|
@ -509,7 +507,6 @@ function getTests() {
|
||||||
eval(substr($result, 4));
|
eval(substr($result, 4));
|
||||||
$this->assertEqual($posts, $fields);
|
$this->assertEqual($posts, $fields);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* testSchemaWrite method
|
* testSchemaWrite method
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue