<commit_before><?php
/**
 * User: <NAME> <<EMAIL>>
 */

namespace Praxigento\Downline\Data\Entity;

include_once(__DIR__ . '/../../phpunit_bootstrap.php');

class Customer_UnitTest extends \Praxigento\Core\Test\BaseMockeryCase
{
    /** @var  Customer */
    private $obj;

    protected function setUp()
    {
        parent::setUp();
        $this->obj = new Customer();
    }

    public function test_accessors()
    {
        /** === Test Data === */
        $COUNTRY_CODE = 'country code';
        $CUSTOMER_ID = 'cust id';
        $DEPTH = 'depth';
        $HUMAN_REF = 'mlm id';
        $PARENT_ID = 'parent id';
        $PATH = 'path';
        /** === Call and asserts  === */
        $this->obj->setCountryCode($COUNTRY_CODE);
        $this->obj->setCustomerId($CUSTOMER_ID);
        $this->obj->setDepth($DEPTH);
        $this->obj->setHumanRef($HUMAN_REF);
        $this->obj->setParentId($PARENT_ID);
        $this->obj->setPath($PATH);
        $this->assertEquals($COUNTRY_CODE, $this->obj->getCountryCode());
        $this->assertEquals($CUSTOMER_ID, $this->obj->getCustomerId());
        $this->assertEquals($DEPTH, $this->obj->getDepth());
        $this->assertEquals($HUMAN_REF, $this->obj->getHumanRef());
        $this->assertEquals($PARENT_ID, $this->obj->getParentId());
        $this->assertEquals($PATH, $this->obj->getPath());
    }
}<commit_msg>MOBI-286 - Add reference_code to Downline Customer<commit_after><?php
/**
 * User: <NAME> <<EMAIL>>
 */

namespace Praxigento\Downline\Data\Entity;

include_once(__DIR__ . '/../../phpunit_bootstrap.php');

class Customer_UnitTest extends \Praxigento\Core\Test\BaseMockeryCase
{
    /** @var  Customer */
    private $obj;

    protected function setUp()
    {
        parent::setUp();
        $this->obj = new Customer();
    }

    public function test_accessors()
    {
        /** === Test Data === */
        $COUNTRY_CODE = 'country code';
        $CUSTOMER_ID = 'cust id';
        $DEPTH = 'depth';
        $HUMAN_REF = 'mlm id';
        $PARENT_ID = 'parent id';
        $PATH = 'path';
        $REFERRAL_CODE = 'referral_code';
        /** === Call and asserts  === */
        $this->obj->setCountryCode($COUNTRY_CODE);
        $this->obj->setCustomerId($CUSTOMER_ID);
        $this->obj->setDepth($DEPTH);
        $this->obj->setHumanRef($HUMAN_REF);
        $this->obj->setParentId($PARENT_ID);
        $this->obj->setPath($PATH);
        $this->obj->setReferralCode($REFERRAL_CODE);
        $this->assertEquals($COUNTRY_CODE, $this->obj->getCountryCode());
        $this->assertEquals($CUSTOMER_ID, $this->obj->getCustomerId());
        $this->assertEquals($DEPTH, $this->obj->getDepth());
        $this->assertEquals($HUMAN_REF, $this->obj->getHumanRef());
        $this->assertEquals($PARENT_ID, $this->obj->getParentId());
        $this->assertEquals($PATH, $this->obj->getPath());
        $this->assertEquals($REFERRAL_CODE, $this->obj->getReferralCode());
    }
}
{'fraction_non_alphanumeric': 0.19084745762711863, 'fraction_numerical': 0.001016949152542373, 'mean_word_length': 2.8324675324675326, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 76, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4925371', 'n_tokens_mistral': 991, 'n_tokens_neox': 963, 'n_words': 140}