From d2e15f52c3a2ca08d759b53562c47b01721880b5 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 13 Aug 2021 15:59:05 +0300 Subject: [PATCH] fix test --- .../Espo/ORM/{EntityManager.php => EntityManagerTest.php} | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) rename tests/integration/Espo/ORM/{EntityManager.php => EntityManagerTest.php} (93%) diff --git a/tests/integration/Espo/ORM/EntityManager.php b/tests/integration/Espo/ORM/EntityManagerTest.php similarity index 93% rename from tests/integration/Espo/ORM/EntityManager.php rename to tests/integration/Espo/ORM/EntityManagerTest.php index 7bbbdf7d9c..671c485f00 100644 --- a/tests/integration/Espo/ORM/EntityManager.php +++ b/tests/integration/Espo/ORM/EntityManagerTest.php @@ -31,7 +31,7 @@ namespace tests\integration\Espo\ORM; use Espo\ORM\EntityManager; -class EntityManager extends \tests\integration\Core\BaseTestCase +class EntityManagerTest extends \tests\integration\Core\BaseTestCase { public function testRefreshEntity(): void { @@ -49,5 +49,7 @@ class EntityManager extends \tests\integration\Core\BaseTestCase $em->refreshEntity($entity); $this->assertEquals('Test', $entity->get('name')); + + $this->assertFalse($entity->isAttributeChanged('name')); } }