mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
clean up assertions now that we are dropping the fixture early
This commit is contained in:
parent
a0e023d3a9
commit
1ebdc61fdc
1 changed files with 3 additions and 3 deletions
|
@ -702,11 +702,11 @@ class CakeSchemaTest extends CakeTestCase {
|
||||||
|
|
||||||
$hasTable = isset($read['tables']['non_conventional']);
|
$hasTable = isset($read['tables']['non_conventional']);
|
||||||
$this->assertTrue($hasTable, 'non_conventional table should appear');
|
$this->assertTrue($hasTable, 'non_conventional table should appear');
|
||||||
$versionIdHasKey = $hasTable && isset($read['tables']['non_conventional']['version_id']['key']);
|
$versionIdHasKey = isset($read['tables']['non_conventional']['version_id']['key']);
|
||||||
$this->assertTrue($versionIdHasKey, 'version_id key should be set');
|
$this->assertTrue($versionIdHasKey, 'version_id key should be set');
|
||||||
$versionIdKeyIsPrimary = $versionIdHasKey && $read['tables']['non_conventional']['version_id']['key'] === 'primary';
|
$versionIdKeyIsPrimary = $read['tables']['non_conventional']['version_id']['key'] === 'primary';
|
||||||
$this->assertTrue($versionIdKeyIsPrimary, 'version_id key should be primary');
|
$this->assertTrue($versionIdKeyIsPrimary, 'version_id key should be primary');
|
||||||
$idHasNoKey = $hasTable && !isset($read['tables']['non_conventional']['id']['key']);
|
$idHasNoKey = !isset($read['tables']['non_conventional']['id']['key']);
|
||||||
$this->assertTrue($idHasNoKey, 'id key should not be set');
|
$this->assertTrue($idHasNoKey, 'id key should not be set');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue