public function test_get()
 {
     /** === Call and asserts  === */
     $res = $this->obj->get(Agg::AS_ASSET);
     $this->assertEquals('pata.code', $res);
     $res = $this->obj->get(Agg::AS_CUST_NAME);
     $this->assertInstanceOf(\Praxigento\Core\Repo\Query\Expression::class, $res);
     $this->assertEquals("(CONCAT(ce.firstname, ' ', ce.lastname))", (string) $res);
     $res = $this->obj->get(Agg::AS_CUST_EMAIL);
     $this->assertEquals('ce.email', $res);
     $res = $this->obj->get(Agg::AS_BALANCE);
     $this->assertEquals('paa.balance', $res);
     $res = $this->obj->get(Agg::AS_ID);
     $this->assertEquals('paa.id', $res);
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     $this->_map[Agg::AS_REF] = Repo::AS_DOWNLINE . '.' . Customer::ATTR_HUMAN_REF;
 }