private function BundleInherit::compareInstances in Bundle Inherit 7
Helper function to compare two instances indeferent of their 'id', 'bundle'and 'locked' fields.
Parameters
$a: First instance.
$b: Second instance.
Return value
TRUE if $a and $b are equal.
3 calls to BundleInherit::compareInstances()
File
- ./
bundle_inherit.test, line 122 - Tests for bundle_inherit module.
Class
- BundleInherit
- @file Tests for bundle_inherit module.
Code
private function compareInstances($a, $b) {
unset($a['id'], $a['bundle'], $a['locked']);
unset($b['id'], $b['bundle'], $b['locked']);
return $a == $b;
}