diff --git a/tests/Propel/Tests/Generator/Behavior/NestedSet/NestedSetBehaviorObjectBuilderModifierTest.php b/tests/Propel/Tests/Generator/Behavior/NestedSet/NestedSetBehaviorObjectBuilderModifierTest.php index a84c243b6b..8aafd71890 100644 --- a/tests/Propel/Tests/Generator/Behavior/NestedSet/NestedSetBehaviorObjectBuilderModifierTest.php +++ b/tests/Propel/Tests/Generator/Behavior/NestedSet/NestedSetBehaviorObjectBuilderModifierTest.php @@ -62,7 +62,7 @@ public function testObjectAttributes() { $expectedAttributes = ['nestedSetQueries']; foreach ($expectedAttributes as $attribute) { - $this->assertClassHasAttribute($attribute, 'NestedSetTable9'); + $this->assertTrue(property_exists('NestedSetTable9', $attribute)); } } diff --git a/tests/Propel/Tests/Generator/Behavior/Validate/I18nConcreteInheritanceHandleValidateBehaviorTest.php b/tests/Propel/Tests/Generator/Behavior/Validate/I18nConcreteInheritanceHandleValidateBehaviorTest.php index f69beefe6e..16b33c0088 100644 --- a/tests/Propel/Tests/Generator/Behavior/Validate/I18nConcreteInheritanceHandleValidateBehaviorTest.php +++ b/tests/Propel/Tests/Generator/Behavior/Validate/I18nConcreteInheritanceHandleValidateBehaviorTest.php @@ -187,8 +187,8 @@ protected function checkClassHasValidateBehavior($class) $this->assertTrue(method_exists($class, 'validate'), "Class $class has no validate() method"); $this->assertTrue(method_exists($class, 'getValidationFailures'), "Class $class has no getValidationFailures() method"); $this->assertTrue(method_exists($class, 'loadValidatorMetadata'), "Class $class has no loadValidatorMetadata() method"); - $this->assertClassHasAttribute('alreadyInValidation', $class, "Class $class has no 'alreadyInValidation' property"); - $this->assertClassHasAttribute('validationFailures', $class, "Class $class has no 'validationFailures' property"); + $this->assertTrue(property_exists($class, 'alreadyInValidation'), "Class $class has no 'alreadyInValidation' property"); + $this->assertTrue(property_exists($class, 'validationFailures'), "Class $class has no 'validationFailures' property"); $method = new ReflectionMethod($class, 'loadValidatorMetadata'); $this->assertTrue($method->isStatic(), "Method loadValidatorMetadata() of class $class isn't static"); } diff --git a/tests/Propel/Tests/Generator/Behavior/Validate/ValidateBehaviorTest.php b/tests/Propel/Tests/Generator/Behavior/Validate/ValidateBehaviorTest.php index ec4853108b..455579b0c2 100755 --- a/tests/Propel/Tests/Generator/Behavior/Validate/ValidateBehaviorTest.php +++ b/tests/Propel/Tests/Generator/Behavior/Validate/ValidateBehaviorTest.php @@ -79,7 +79,7 @@ public function testHasLoadValidatorMetadataMethod() public function testHasAlreadyInValidationAttribute() { foreach ($this->classes as $class) { - $this->assertClassHasAttribute('alreadyInValidation', $class); + $this->assertTrue(property_exists($class, 'alreadyInValidation')); } } @@ -89,7 +89,7 @@ public function testHasAlreadyInValidationAttribute() public function testHasValidationFailuresAttribute() { foreach ($this->classes as $class) { - $this->assertClassHasAttribute('validationFailures', $class); + $this->assertTrue(property_exists($class, 'validationFailures')); } }