From 8b6db9ac2aad60946facc86d5f5f1e01301158a9 Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 17 Oct 2023 09:46:34 +0200 Subject: [PATCH] Change method to non-static in test --- tests/VirtualColumnTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/VirtualColumnTest.php b/tests/VirtualColumnTest.php index 8e4e5bc..21418f7 100644 --- a/tests/VirtualColumnTest.php +++ b/tests/VirtualColumnTest.php @@ -127,7 +127,7 @@ class VirtualColumnTest extends TestCase foreach($encryptedAttributes as $key => $expectedValue) { $savedValue = $model->getAttributes()[$key]; // Encrypted - $this->assertTrue(MyModel::valueEncrypted($savedValue)); + $this->assertTrue($model->valueEncrypted($savedValue)); $this->assertNotEquals($expectedValue, $savedValue); $retrievedValue = $model->$key; // Decrypted