From 3a497524dc7c987e0cfc989a993e897dacf3fcd5 Mon Sep 17 00:00:00 2001 From: XGUI Date: Tue, 4 Feb 2025 10:48:28 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B08129=20=20-=20Fix=20unexpected=20identif?= =?UTF-8?q?ier=20self?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../unitary-tests/core/AttributeDefinitionTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/php-unit-tests/unitary-tests/core/AttributeDefinitionTest.php b/tests/php-unit-tests/unitary-tests/core/AttributeDefinitionTest.php index bfa979553..047f39462 100644 --- a/tests/php-unit-tests/unitary-tests/core/AttributeDefinitionTest.php +++ b/tests/php-unit-tests/unitary-tests/core/AttributeDefinitionTest.php @@ -257,7 +257,7 @@ PHP $defaultValue = $oDateAttribute->GetDefaultValue(); self::assertNull($defaultValue, 'Invalid default value for DateTime attribute should give null default value'); - self::AssertLastErrorLogEntryContains("Invalid default value 'zabugomeuh' for field 'start_date' on class 'WorkOrder', defaulting to null", "Last error log entry should contain a meaningful message"); + $this->AssertLastErrorLogEntryContains("Invalid default value 'zabugomeuh' for field 'start_date' on class 'WorkOrder', defaulting to null", "Last error log entry should contain a meaningful message"); } public function testDateEmptyDefaultReturnsNullAsDefaultValue() @@ -274,7 +274,7 @@ PHP $oDateAttribute = $this->GivenAttribute(\WorkOrder::class, 'start_date', AttributeDate::class, 'zabugomeuh', false); $defaultValue = $oDateAttribute->GetDefaultValue(); - self::AssertLastErrorLogEntryContains("Invalid default value 'zabugomeuh' for field 'start_date' on class 'WorkOrder', defaulting to null", "Last error log entry should contain a meaningful message"); + $this->AssertLastErrorLogEntryContains("Invalid default value 'zabugomeuh' for field 'start_date' on class 'WorkOrder', defaulting to null", "Last error log entry should contain a meaningful message"); self::assertNull($defaultValue, 'Invalid default value for Date attribute should give null default value'); } @@ -286,7 +286,7 @@ PHP $defaultValue = $oDateAttribute->GetDefaultValue(); - self::AssertLastErrorLogEntryContains("Invalid default value '\"27/01/2025\"' for field 'start_date' on class 'WorkOrder', defaulting to null", "Last error log entry should contain a meaningful message"); + $this->AssertLastErrorLogEntryContains("Invalid default value '\"27/01/2025\"' for field 'start_date' on class 'WorkOrder', defaulting to null", "Last error log entry should contain a meaningful message"); self::assertNull($defaultValue, 'Invalid default value for Date attribute should give null default value'); }