diff --git a/lib/Cake/Test/Case/Model/CakeSchemaTest.php b/lib/Cake/Test/Case/Model/CakeSchemaTest.php index 1e7158acae6..7d27fc6814c 100644 --- a/lib/Cake/Test/Case/Model/CakeSchemaTest.php +++ b/lib/Cake/Test/Case/Model/CakeSchemaTest.php @@ -702,11 +702,11 @@ public function testSchemaReadWithNonConventionalPrimaryKey() { $hasTable = isset($read['tables']['non_conventional']); $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'); - $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'); - $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'); }