Spaces:
No application file
No application file
File size: 530 Bytes
d2897cd |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
<?php
namespace Mautic\LeadBundle\Tests\Entity;
use Mautic\LeadBundle\Entity\Company;
class CompanyTest extends \PHPUnit\Framework\TestCase
{
public function testChangingPropertiesHydratesFieldChanges(): void
{
$email = '[email protected]';
$company = new Company();
$company->addUpdatedField('email', $email);
$changes = $company->getChanges();
$this->assertFalse(empty($changes['fields']['email']));
$this->assertEquals($email, $changes['fields']['email'][1]);
}
}
|